Command Line Using FTP Text File

Advertisement

is250p
Joined:
Posts:
2

Command Line Using FTP Text File

I have a .BAT file that runs the following command and it works fine
cd \program files (x86)\winscp
winscp.com /command "open sftp://user:pw@ftphost.com" "put -nopermissions -nopreservetime S:\filename.txt" "exit" /log="S:\ftp_log.txt
However I have a new project where it creates a dynamic filename with the datetime appended to it. The process creates an FTP text file with the dynamic filename. How do I pass this FTP text file in the command line? Below is what's in the FTP text file. So basically I want to upload the Test20240716155807.txt file
lcd s:\
put Test20240716155807.txt
quit

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum