Please help me! I'm newbie to mapping network and batch files. Please see

JackO7

New member
Joined
Jan 19, 2009
Messages
3
Reaction score
0
Points
1
details and help me!? I've made the following batch file with reference of a website. Is it correct? it shows "system error 67 has occurred". But, I can map any network location manually (by Map Network Place > Add Network Place Wizard) without any error. Only this batch file shows error.

I want to map my ftp as a network drive. If it already exist, should open it with explorer. else, it should be created.

But, I don't know how-to. please help me out with correct batch file! I'm hoping you all.

Thanks in advance.


myFtpMapDrive.bat:

If exist "z:\ftp.mydomain.com\" Goto :openit

:mapit
net use z: /delete
net use z: net use w: ftp://myFtpUserName:[email protected] /persistent:no

:openit
cd /d z:\ftp.mydomain.com

pause
exit
 
Back
Top