Thread: Civilization
View Single Post
Old 07-12-2009, 06:02 PM   #291
Eagle of Fire
Friendly Fire
 
Eagle of Fire's Avatar

 
Join Date: Sep 2004
Location: Valleyfield, Canada
Posts: 4,892
Default

Quote:
If you had a directory one level higher than the root ( ) and would execute the BAT from there, it wouldn't work. (Your post has nothing to do with the quote, I would say. )
I'd like to point out that in the good old DOS days, there was a way to add a "default directory" or "path" (I sadly don't recall the exact command) which made the platform search in the "default" directory whenever the command or file wasn't found in the current directory.

This is how DOS handled the basic commands in the upper versions. Instead of knowing the files are in A: or B:, they copied all the commands in one directory and created the path there. It was possible to add more directories to this default path.

So, someone creating a batch file and placing it in such a directory would make it work in any directory just like if it was called by typing the full path.

__________________
I'm on a hot streak... Literally.
Proud member of The Abandoned since 2005.
Eagle of Fire is offline                         Send a private message to Eagle of Fire
Reply With Quote