Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

is250p

nevermind I figured it out
is250p

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