4 posts
Posted 20 March 2012 - 11:48 PM
I was wondering how i could get a program to launch another one when a word is entered?
Im trying to get a menu to boot a different program when a value is typed in
715 posts
Posted 21 March 2012 - 12:30 AM
shell.run("path to program")
4 posts
Posted 21 March 2012 - 12:31 AM
thank you so much, your a great help to a noob like me
4 posts
Posted 22 March 2012 - 08:30 AM
and can i run programs like copy <path> <path> or eject <side> by using shell.run?
124 posts
Location
Liverpool (no I am not a Scouser Im form Holland)
Posted 22 March 2012 - 08:45 AM
no for that you would need to do
fs.copy("path to copy", "path to paste")
or
shell.run("eject","side")
if that's any help
4 posts
Posted 22 March 2012 - 10:20 AM
It says access denied!
378 posts
Location
In the TARDIS
Posted 22 March 2012 - 12:01 PM
It says access denied!
when you try to do what exactly?
4 posts
Posted 22 March 2012 - 01:02 PM
while true do
x = io.read()
fs.copy(x," disk/"..x)
end
473 posts
Location
Poland
Posted 22 March 2012 - 01:07 PM
fs.copy(x,"disk/"..x)
without the whitespace
4 posts
Posted 22 March 2012 - 01:23 PM
Thanks a lot for a quick answer!