How can I convert my Windows scripts to WinSCP scripts
Hi folks,
I am brand new to WinSCP. I need to send multiple files to a remote site in a secure ftp. Here are what my current scripts look like:
RUN.BAT
Kicks off this file:
PUTFILE.TXT
Thanks!
I am brand new to WinSCP. I need to send multiple files to a remote site in a secure ftp. Here are what my current scripts look like:
RUN.BAT
@echo off REM ------------------------------------------ REM This batch file will run an ftp upload REM then delete files on the current computer. REM ------------------------------------------ REM Start the upload echo ---------------------------------- echo Start uploading at %TIME% echo ---------------------------------- ftp -s:putfile.txt XXX.XX.XXX.XXX //runs the text file below REM Done uploading, now delete the files on the local machine echo ---------------------------------- echo Deleting local files echo ---------------------------------- del D:\FTP_FOLDER\III to DOR\hello*.txt // deletes the files on my side after the ftp REM copy over the files on the root to replace the one's just deleted echo ---------------------------------- copy D:\helloworld*.txt echo ---------------------------------- echo Upload complete at %TIME%. echo ----------------------------------
PUTFILE.TXT
jdoe // user name jdoe // password prompt cd uploads mput helloworld*.txt /files to be trasferred bye