Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

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.
Wizardry

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