Script for mapped hard drive logon?

Seagate 2tb freeagent goflex home networ...
February 1, 2011 at 10:36:46
Specs: Windows 7 HP, Pentium Dual T3200 2
Hi Guys and Girls.

I have a small problem that I would like help with please.

I am trying to create a script so I can connect to my mapped network (NAS) drive on logon. The drive is a Seagate GoFlex Home and the reason I am doing it is because I can map it ok but as soon as I reboot the PC Windows 7 loses it and I have to do it all again, even with the 'reconnect at logon' ticked.

The drive is connected to a Netgear WNR3500 router which I connect to wirelessly.

The path of the mapped drive is:
\\GOFLEX_HOME\GoFlex Home Personal

The script I am attempting to create is:

But I just can't seem to get it to work.

When I try to execute the scrpt in CMD all I get is a message telling me the syntax of the command and it doesn't actually log the mapped drive on.

My aim is to put the script as a .BAT file in the startup folder so it connects to the drive after logon.

Can someone please tell me where I am going wrong?

Thank you all very much


See More: Script for mapped hard drive logon?

Report •

February 1, 2011 at 10:46:18
Have you tried putting the path name in quotes in your script? I'm guessing that the spaces in the Go Flex Home Personal name is what is causing your syntax error


Report •

February 1, 2011 at 10:48:48
dhg2496 - You my friend are a superstar! I just did exactly as you said and it worked perfectly!

Thank you very much :)


Report •
Related Solutions

Ask Question