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.
Batch File and net use help
Name: ChrisRT Date: March 16, 2004 at 02:45:02 Pacific OS: 2000 CPU/Ram: Variable
Comment:
Hi,
I'm trying to work out if i can use a batch file to delete mapped drives if a certain condition is met, namely the computer name. I'm a bit clueless, but i thought something like the following might work.
IF %computername%=="Satellite?" net use /delete f:
This doesn't work unfortunately but helps to give an idea what i'm trying to do. Anyone know if its possible? Any suggestions?
Summary: are you using a the net use command to add network printer in a batch file ? like net use LPT#: \\server\printer-share if so, then just use net use LPT#: /delete you can distributed shared objects (if...
Summary: I saw a post on this site a few weeks ago about batch files and running remote services. I want my batch file to net start and net stop services on a remote server, but i do not want Windows 2000 to...
Summary: deltree is not included in windows 2000 (oops) but you can probably copy the command from another machine and it would work fine. Also in win2k you can use the /q switch with the del command to supres...