I need a bit help with Batch files on the new Vista OS. I know if I start a batch file from Explorer the working directory is the directory which holds the file. And if I start a batch file from a shortcut then I can specify a different one, right? But here is the problem. When I start a batch file as Administrator the working directory is always C:\Windows\System32, even if the file is in a dissimilar directory or starts from a shortcut whit an explicit working directory. Due to this all my batch files get fails with all another executable (batch, exe, ecc.) in case not using absolute paths.
As far as I know the best method to edit the batch file is by changing the current directory. For example like this
CD \my_directory
CALL another_batch_file
Am I right up to here? If yes, then I would like to know if there is reason because the working directory is not respected or is simply a missing functionality. Any idea?
Bookmarks