How to write local path with spaces?

Advertisement

massimo.z@cstv.it
Joined:
Posts:
1

How to write local path with spaces?

Hi, I need to write a bat file to transfer the files.
this is my local path:
C:\FTP\01428 - CUSTOMER NAME
And this is the code, but it doesn't work.
@echo off
 
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /log="C:\Magonet\Custom\FileBat\Log\WinSCP.log" /ini=nul ^
  /command ^
   "open ftp://username:password@ftp.site.it/" ^
   "put -delete C:\FTP\00474 - CUSTOMER NAME\DDT\ESPORTATI\*.* /OUT/PRODUZIONE/" ^
   "exit"
 
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)
 
exit /b %WINSCP_RESULT%
How can I write it down correctly?
Thanks

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum