Hi,
I tried adding double quotes for the files names and it still gives me the following error:
get "File_HQ_data_SourceGuestID_Email_2019_03_18 07_00_03"
Can't get attributes of file 'File__HQ_data_SourceGuestID_Email_2019_03_18 07_00_03'.
Could not retrieve file information
This is my code snippet:
var4 = File__HQ_data_SourceGuestID_Email_2019_03_18 07_00_03
winscp.com /nointeractiveinput /log=L:\ETLLOGS\FTP\%r%.log /command "option batch abort" "option confirm off" "option echo on" "open %var1%" "lcd %var2%" "cd /" "cd %var3%" "get ""%var4%""" "exit" >> %tmpdir%\%r%.ftpget
if %errorlevel% neq 0 GOTO :ERROR1
EXIT /B 0
:ERROR1
echo %DATE% %TIME% FA1 - %1 >> L:\ETLLOGS\FTP\LOGS\GETFAILEDATTEMPTS