Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: locate remote Windows directory
You should not have to use the AttrGet and AttrSet commands on these files. If you look at this file on your system, (edit will work on hidden files if you specify the path in the command line) you will see that it is merely a text file and contains the entries for WinDir and WinBootDir inside it.
You CAN use the IniReadPvt to read the data from this file, as shown below:
Windir=IniReadPvt("Paths","WinDir","","c:\msdos.sys") WinBootDir=IniReadPvt("Paths","WinBootDir","","c:\msdos.sys")Then you can use these variables as %WinDir% in your path name to access files in the windows directory.
I believe there is a similar file within NT4 systems (c:\msdos.---), but can't be sure that is the exact name. There should be some other tricks for old Windows as well.
One of the handiest things about the MSDOS.SYS file is that you can see your Host drive settings in there if running Drivespace (I don't like running it myself, too many things to go wrong).
Article ID: W13154
Filename: Find Windows Location on Remote Win95 Machine.txt
File Created: 1999:04:15:16:52:06
Last Updated: 1999:04:15:16:52:06