Networking Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationNetworking Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 23rd, 2004, 05:14 PM
firehawk108 firehawk108 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 14 firehawk108 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old February 24th, 2004, 07:46 AM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 39 m 19 sec
Reputation Power: 92
I use something like this:

net use f: \\server1\Public /persistent:no

With this, when you log off, the network drive goes, so you have no need to delete it the next time you log on.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationNetworking Help > batch file drive mapping


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway