Hi,
It is placed it in same folder,
geting following error if i open a cmd then run the batch file by drag & drop
C:\Documents and Settings\xxxxx>ftp -n -s:Login.ftp
Error opening script file Login.ftp.
Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host]
-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-w:buffersize Overrides the default transfer buffer size of 4096.
host Specifies the host name or IP address of the remote
host to connect to.
Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.
C:\Documents and Settings\xxxxx>
But i am geting following error when i directly run the batch file or go to the path and run it.
F:\ata\Share>ftp -n -s:Login.ftp
ftp> open xxx.xxx.xx.xxx
Connected to xxx.xxx.xx.xxx.
421 Unable to connect to remote server. Try again later.
Connection closed by remote host.
ftp> user user123
Not connected.
ftp> password123
ftp> bin
Not connected.
ftp> hash
Hash mark printing On ftp: (2048 bytes/hash mark) .
ftp> prompt off
Interactive mode Off .
ftp>
But through a FTP tool i can to the PC.