?
Solved

Login Script not working, might be a space issue, basic mapping script

Posted on 2006-04-23
12
Medium Priority
?
216 Views
Last Modified: 2010-03-18
Ok i am trying to map some folders using a login script.. Server is windows server 2003, client computer is win xp.. I have two scripts i am using for two different users, one is for when i want to map all my music folders and one is for when im doing work stuff... Having problems with the music folder mapping script, called login1.bat  I believe it has to do with the spacing in the folder names... If someone could try and fix the script and post it back into a message that would be sweet... Below is the script... Clean it up any way you want, just try and explain the reasonings behind that... I'm sort of new to server technoolgy.. Also, not too familiar with the dos environment.. I know %20 would fill spaces in URL's and stuff, but it didnt seem to work for me in the login script, unless maybe i mistyped stuff... Anyways, please post the fix in a message.. Thanks in advance..

SCRIPT STARTS BELOW    YOU WILL SEE *'s next to the lines that did not work!!!
---------------------------------------------------

@echo off
@echo off
@echo off
@echo off
@echo on
@echo on
@echo on


net use m: /delete
net use n: /delete
net use q: /delete
net use r: /delete
net use v: /delete
net use w: /delete
net use x: /delete
net use z: /delete



net use m: \\dellsonmandella\MaxtorMusic
net use n: \\DELLSONMANDELLA\~Maxtor iPod Backups            *************did not work
net use q: \\server\dixbax\FTP
net use r: \\server\dixbax\Music
net use v: \\dellsonmandella\SeagateDrive
net use w: \\dellsonmandella\Pedros E                                    *************did not work
net use x: \\dellsonmandella\Ipod Music                                  *************did not work
net use z: \\dellsonmandella\~Pedros Gigger                           *************did not work
0
Comment
Question by:PaigePeople
  • 6
  • 6
12 Comments
 

Author Comment

by:PaigePeople
ID: 16522604
also, what is the echo off   and echo on stuff mean??? anything that will make the script more fool proof please feel free to add it to the script...
i'm about to try it like this, not sure it will work.. think i already tried it like this...

@echo off
@echo off
@echo off
@echo off
@echo on
@echo on
@echo on


net use m: /delete
net use n: /delete
net use q: /delete
net use r: /delete
net use v: /delete
net use w: /delete
net use x: /delete
net use z: /delete



net use m: \\dellsonmandella\MaxtorMusic
net use n: \\dellsonmandella\~Maxtor%20iPod%20Backups
net use q: \\server\dixbax\FTP
net use r: \\server\dixbax\Music
net use v: \\dellsonmandella\SeagateDrive
net use w: \\dellsonmandella\Pedros%20E
net use x: \\dellsonmandella\Ipod%20Music
net use z: \\dellsonmandella\~Pedros%20Gigger
0
 
LVL 30

Accepted Solution

by:
Irwin Santos earned 2000 total points
ID: 16522608
rename the folders that have "SPACE" in them, and apply to your script
instead of using a space, use an underscore "_"
0
 
LVL 30

Expert Comment

by:Irwin Santos
ID: 16522614
echo off
is to NOT display the command executables response to the screen

echo on
is
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:PaigePeople
ID: 16522619
ok that didnt work.... think i saw something like ERROR 53... but none of those folders are mapping.... same problem as my first original post....
0
 

Author Comment

by:PaigePeople
ID: 16522630
ok, so there is no way of using them the way they are??? kind of wanted to keep original names because i did a winamp media scan and added all the files already using those original mappings.... thing is, first time i mapped the folders, i did it manually,  went through network neighborhood and just right clicked map drive... hmmm, i wonder if i change the names of folders if it will mess up my winamp database...
0
 
LVL 30

Expert Comment

by:Irwin Santos
ID: 16522643
do 1 folder at a time..that way we can isolate the offending folder
0
 

Author Comment

by:PaigePeople
ID: 16522661
i am in the process of renaming them already :(   i just want to try and get this done real quick so i can go to bed :)    thanks... ill let you know how it goes within 10 mins... thanks again!! think you helped me not too long ago too... maybe with my router issue.... which i still have not fixed yet... havent had time to mess with that.... i will tomorow night though.... what time u usually around, because i would like it if i could try and fix that while you are online so i can try other stuff, etc  if needed...
0
 
LVL 30

Expert Comment

by:Irwin Santos
ID: 16522677
it's 9pm Sunday in Hawaii... just about to go to bed.. but just holla' and I'll check my email when I wake up.
0
 

Author Comment

by:PaigePeople
ID: 16522710
ok, that worked, the renaming of actual folders being shared... so you get the points.... not exactly the way i wanted it to be fixed, but hey, beggars cant be choosers... :)   Thanks again.... now its time to check and see if winamp will still recognize those files from earlier mappings..
0
 
LVL 30

Expert Comment

by:Irwin Santos
ID: 16522711
cool.. that is good news!

naming convention on sharing files should always be a contiguous name (no spaces)
0
 

Author Comment

by:PaigePeople
ID: 16522716
actually, not sure if you still want to try and help with my router problem... you did comment once, but then you sort of let someone else take over..  well it's 3am here, i need to get to bed... here is the link to my router question... http://www.experts-exchange.com/Hardware/Routers/Q_21805199.html   i will try and post something by like noon your time... or something like that... i get home from work around 6pm eastern time... i will post around that time... so you can do the math :)    i think thats around noontime for you :)   anyways, thanks a lot...
0
 
LVL 30

Expert Comment

by:Irwin Santos
ID: 16522729
seemed like craig was on a roll..but i'll take look again.
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question