Create local folder if it does not exist
I am using WinSCP v4.2.7 build 758 in a batch file to backup my ftp server locally. I also use other variables in the batch file, to put each backup of WinSCP in a different local folder.
My problem is that if the local folder does not exist, WinSCP stops. Is there a way to tell WinSCP to create the local folder if it does not exist?
This is the batch file I use
My problem is that if the local folder does not exist, WinSCP stops. Is there a way to tell WinSCP to create the local folder if it does not exist?
This is the batch file I use
winscp.exe /log=C:\logs\log.txt /console /command "option batch on" "open username:password@host.com" "synchronize local C:\localfolder /home1/username/public_html/remotefolder" "close" "exit"