Can't find specified file

Advertisement

Wizardry
Joined:
Posts:
2

Can't find specified file

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
  • WinSCP.log (20.04 KB, Private file)

Reply with quote

Advertisement

Wizardry

Re: Can't find specified file

Thanks, I will give it a try.
Wiz

Update: I now have it working. I was missing some of the Quote marks. Thanks for all you help.

Reply with quote

Advertisement

You can post new topics in this forum