
February 23rd, 2004, 05:14 PM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 14
Time spent in forums: 51 m
Reputation Power: 0
|
|
|
batch file drive mapping
Hi, I am trying to get a batch file to run properly under WinXP Pro under a domain. I have a batch file located on a windows server 2003 domain machine, and I want to map two drives when the user logs onto the domain on a workstation. Here is what the file looks like
@echo off
net use e: /home /delete
net use f: \\server1\Public /delete
net use e: /home
net use f: \\server1\public
The batch file runs fine on logon, but it stops and gives me this error:
There are open files and/or incomplete directory searches pending on the connection to e:.
Is it OK to continue disconnecting and force them closed? <Y/N>
...if I hit yes, no drives get connected. If I hit no, they seem to connect. Regardless, it should close automatically and connect the drives. I am using this same batch file to map drives on several win98 machines with no problem.
I'd appreciate any help!!! Thanks
|