I have a .bat file that is attempting to reach a folder with spaces in the name. I am unable to change the name of the folder.
The code will move files in the folder to another folder. All that works...I just can't read the folder with spaces.
My coding skills are minimal. I've tried double quotes around the folder path.
put -delete C:\Users\Server\Desktop\BrightreeERN\Send Commercial to Brightree\Receive from Brightree*" ^
I would expect that we can reach the folder with spaces in the name in order for the code to complete it's task.
Edit Here's the whole thing, I've tried double quotes as shown and it still doesn't work:
"c:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\Users\Server\Desktop\WinSCP.log" /ini=nul ^
/command ^
"open sftp://{Edited for privacy}""" ^
"cd /SendFiles" ^
"put -delete "C:\Users\Server\Desktop\BrightreeERN\Send Commercial to Brightree\Receive from Brightree*"" ^
"exit"