• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

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

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
PaigePeople
Asked:
PaigePeople
  • 6
  • 6
1 Solution
 
PaigePeopleAuthor Commented:
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
 
Irwin SantosComputer Integration SpecialistCommented:
rename the folders that have "SPACE" in them, and apply to your script
instead of using a space, use an underscore "_"
0
 
Irwin SantosComputer Integration SpecialistCommented:
echo off
is to NOT display the command executables response to the screen

echo on
is
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
PaigePeopleAuthor Commented:
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
 
PaigePeopleAuthor Commented:
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
 
Irwin SantosComputer Integration SpecialistCommented:
do 1 folder at a time..that way we can isolate the offending folder
0
 
PaigePeopleAuthor Commented:
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
 
Irwin SantosComputer Integration SpecialistCommented:
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
 
PaigePeopleAuthor Commented:
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
 
Irwin SantosComputer Integration SpecialistCommented:
cool.. that is good news!

naming convention on sharing files should always be a contiguous name (no spaces)
0
 
PaigePeopleAuthor Commented:
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
 
Irwin SantosComputer Integration SpecialistCommented:
seemed like craig was on a roll..but i'll take look again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now