Re: How can I convert my windows scripts to winSCP scripts
@millerintllc: You won't lose your settings, if you reinstall.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
c:\program files\WinSCP
script?
run.bat
before I just typed bat. Is that what I do here?
...
echo ----------------------------------
echo Start uploading at %TIME%
echo ----------------------------------
winscp.com /script=putfile.txt
REM Done uploading, now delete the files on the local machine
...
@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 ----------------------------------
jdoe // user name
jdoe // password
prompt
cd uploads
mput helloworld*.txt /files to be trasferred
bye