Jump to content




Change Directory inside Program?


  • You cannot reply to this topic
5 replies to this topic

#1 Imprivate

  • Members
  • 42 posts
  • LocationEverywhere

Posted 18 January 2014 - 04:11 PM

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

#2 wieselkatze

  • Members
  • 221 posts
  • LocationGermany

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

Edited by wieselkatze, 18 January 2014 - 04:14 PM.


#3 Imprivate

  • Members
  • 42 posts
  • LocationEverywhere

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 wieselkatze

  • Members
  • 221 posts
  • LocationGermany

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")

Edited by wieselkatze, 18 January 2014 - 05:15 PM.


#5 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

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")

There is no fs.setDir(), but there is shell.setDir().

Edited by MKlegoman357, 18 January 2014 - 05:14 PM.


#6 wieselkatze

  • Members
  • 221 posts
  • LocationGermany

Posted 18 January 2014 - 05:16 PM

 MKlegoman357, on 18 January 2014 - 05:14 PM, said:

There is no fs.setDir(), but there is shell.setDir().

Sure, my bad, I was in another program messing a bit around :P

Edited by wieselkatze, 18 January 2014 - 05:17 PM.






3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users