Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Servers > Windows Server
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Windows Server Please be sure to specify which version of Windows Server your question/post applies to.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Windows Server section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 12th, 2011, 02:27 AM
Registered User
Points: 34, Level: 1
Points: 34, Level: 1 Points: 34, Level: 1 Points: 34, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Making Bat File Problem

Following bat file is not work to connect to configure mapping.
But when we configure mapping by manually i.e. by map net work drive it working fine, but it does not work by following bat file,
There is any other good bat file can create ?




Bat file

@echo off

NET USE G: /DELETE
NET USE I: /DELETE
NET USE J: /DELETE
NET USE Q: /DELETE
NET USE S: /DELETE


Net Use G: \\192.168.200.20\projects (g)
Net Use I: \\192.168.200.20\as-built (i)
Net Use J: \\192.168.200.20\departments(j)
Net Use Q: \\192.168.200.20\photos (q)
Net Use S: \\\\192.168.200.20\users (s)\COMMON


Regards
Reply With Quote
  #2 (permalink)  
Old December 12th, 2011, 12:21 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I suspect the problem here is that you have extra text (drive letters it appears) in the names. These are being read as different parameters. Try enclosing the paths in quotes:

Net Use G: "\\192.168.200.20\projects (g)"
etc.
__________________
-Peter
compiledthoughts.com
twitter/peterlanoie
Reply With Quote
  #3 (permalink)  
Old December 13th, 2011, 03:48 AM
Registered User
Points: 34, Level: 1
Points: 34, Level: 1 Points: 34, Level: 1 Points: 34, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Making Bat File Problem

Thanks,
It work,

Regards
Reply With Quote
Reply


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
create and run .bat file richurules Excel VBA 1 November 9th, 2009 01:26 AM
bat file doesn't work maroun BOOK: Beginning Cryptography with Java 1 October 25th, 2005 05:59 PM
Problem with reading BAT file rhysduk VB How-To 0 January 12th, 2005 09:53 AM
Problem in making database file address virtual akhilvira ASP.NET 1.0 and 1.1 Basics 0 January 4th, 2005 01:33 AM



All times are GMT -4. The time now is 05:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.