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.