computing
  • 15

Error Opening Script File When Connecting To Ftp

  • 15

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

Share

1 Answer

  1. 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

    • 0