![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Windows NT/2000/2003 Server/2008 Server Find support for Windows NT/2000/2003 Server/2008 Server editions. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 20
OS: XP Sp2
|
[SOLVED] Shares with spaces!
Okay...my predecessor very kindly created a pile of shared folders with spaces in the names, now I want to script logons for users but I can't get the shares with spaces in their names to map using either NET USE in a batch file or MapNetworkDrive in a VBS script. Any ideas (short of rename the shares please there are WAY too many!)
|
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Registered User
Join Date: Jun 2007
Location: Central PA
Posts: 27
OS: WinXP Pro SP2 / Win Server 2003 Ent SP2
|
Re: Shares with spaces!
Surround the share name with quotes.
Example: net use x: "\\server\share name" net use /persistent:yes --gotta throw this in there
|
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Dec 2007
Posts: 4
OS: Xp
|
Re: Shares with spaces!
Assuming the share name matches the user name…
Maybe net use x: "\\server\%username%" Alan http://www.thelamberts.com |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 20
OS: XP Sp2
|
Re: Shares with spaces!
I must have been having a real off day, it works fine by putting the share in quotes, I though that should work so it did my head in when it didn't (of course I could jus have been typing the share name totally wrong!
Cheers guys |
|
|
|
![]() |
| Thread Tools | |
|
|