Hello all,
Simple question: Is there a way of changing directories INSIDE a program? I know 'fs.makeDir' makes a directory, is there a way to change to one?. I want my computer to automatically go to 'disk' on startup
Change Directory inside Program?
Started by Imprivate, Jan 18 2014 04:11 PM
5 replies to this topic
#1
Posted 18 January 2014 - 04:11 PM
#2
Posted 18 January 2014 - 04:13 PM
Why would you need something like that? I mean, if you want to run a program there just say
shell.run("disk/yourprogram") or sth. like that
shell.run("disk/yourprogram") or sth. like that
Edited by wieselkatze, 18 January 2014 - 04:14 PM.
#3
Posted 18 January 2014 - 04:45 PM
Yes, but I keep most of my programs on a Floppy Disk. Just wondering if there was something easier than entering 'cd disk' every time. Just being lazy ^^
#4
Posted 18 January 2014 - 04:56 PM
Ah you mean in your startup file to automatically change to a disk?
You could just write there
shell.setDir("disk")
You could just write there
shell.setDir("disk")
Edited by wieselkatze, 18 January 2014 - 05:15 PM.
#5
Posted 18 January 2014 - 05:14 PM
wieselkatze, on 18 January 2014 - 04:56 PM, said:
Ah you mean in your startup file to automatically change to a disk?
You could just write there
fs.setDir("disk")
You could just write there
fs.setDir("disk")
There is no fs.setDir(), but there is shell.setDir().
Edited by MKlegoman357, 18 January 2014 - 05:14 PM.
#6
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











