Basically: I want to have ';cd'; direct the command prompt to its directory of birth (where it was started).How would you get a batch file to change its directory back to its starting directory?
There are programs called 'push' and 'pop' (and techniques to do the same thing). You push the current directory, do anything you want, then pop and you're back to where you were when you pushed. (4DOS had these as internal commands.)
http://www.fpschultze.de/smartfaq+faq.fa is one way to do it.
No comments:
Post a Comment