I have created two batch files to upload files to my FTP site. The first batch file named:
Upload WinSCP-Yes.bat
works perfectly.
The second batch file continues to error out by stating it can't find the file(s). The second batch file is named:
Upload WinSCP file-QB.bat
Both files are exactly the same except for the location to the files:
Here is the contents of the
Upload WinSCP file-QB.bat
file.
I have omitted the log in to the FTP site, that works fine. The install operating system is
Windows 10 and the Version of WinSCP = 5.19.6
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\Users\Owner\Desktop\Bills Low Cost Transmission\WinSCP\WinSCP.log" /ini=nul ^
/command ^
"put C:\Users\Public\Documents\Intuit\QuickBooks\Company Files\* /Backups/" ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)
pause
exit /b %WINSCP_RESULT%
Any help would be appreciated. Log file attached.
Thanks,
Wiz