Error Opening Script File When Connecting to Ftp

June 29, 2012 at 05:39:07
Specs: Windows 7
I want to create a ftp batch file that would automate without having me type in the user and password. Here are the step before I log into ftp. I did create a txt file which contained the user and password and I called it login.txt. However, when I execute the batch file I get error of opening script file login.txt. I have no clue how to fix this.
@echo off
set path=c:\;c:\window\system32;c:\clmlog
o:
cd sds
ftp ftp.server.com -s:login.txt

The login.txt contain:
user
password
cd outgoing
dir

The batch file and the login.txt are both in clmlog directory


See More: Error Opening Script File When Connecting to Ftp

Report •


#1
June 29, 2012 at 06:46:39
have you tried tp ftp.server.com -s:c:\cmlog\login.txt

I only ask because it looks like you changed the directory here

cd sds

im only a novice at ftp, however, i wonder if this is the issue? as it looks as though the problem lies in locating the file..

:: mike


Report •
Related Solutions


Ask Question