Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Verify Drive Mapping
Name: Jet3 Date: April 16, 2003 at 06:15:12 Pacific OS: Win98SE CPU/Ram: varies
Comment:
Well, I hope someone here can help me. I'm setting up a logon script (a DOS batch file) for some Win98 machines on our domain and ran into a problem. I am mapping some drives, but would like to have it check to see if there is already an existing drive using that letter (like if someone already mapped a network share manually). What DOS command(s) can I use to have it check the drives? Something like "if exist J: goto DontMap". Except I can't get "if exist" to test for the drive letter (just files inside the drive). Any ideas? Thanks!
Name: IVO Date: April 16, 2003 at 07:07:35 Pacific
Reply:
In your script use the following statement:
If not exist [Drive Letter]:\Nul GoTo MAP
where [Drive Letter] has to be substituted by a variable or static drive letter. Avoid check removable media (Floppy A and B), as a prompt will be issued (Retry, Fail, Continue). I tested it under plain Dos and Win 9X and it worked, but if you experience any trouble, it can be improved.
Summary: I used to be able to the following in DOS but I cant seem to remember the command for it, and browsing command lists doesnt seem to be ringing any bells. So ... For some code I'm writing the data sit...
Summary: My PC has WIn95 Osr2. Windows doesn't show any virtual drive mapped with subst DOS command: only DOS do it. I experienced the command on PC with older Win 95 release and it works. Why? Thank you. Cla...
Summary: Hi- We have a DOS script that allows a user to select a particular testing environment (e.g. DEV, SIT, PROD) and then maps his drives to point to the correct server. It also copies an appropriate aut...