Commandline path with spaces [solved]
Hi all
Forgive me if I have missed something but I have the below code that works
.... but the code below here doesn't.
Could someone advise how to wrap the path with a space in it? I have tried multiple variations but without success.
Note: I am calling this via a AutoHotkey script. Thanks in advance
Forgive me if I have missed something but I have the below code that works
C:\Windows\system32\cmd.exe /c ""C:\Program Files (x86)\WinSCP\WinSCP.exe" /command "option batch abort" "open sftp://user:password@server/ -hostkey=""ssh-rsa myhostkey""" "put D:\PROD.CBA* /remotedir/remotesubdir/" "exit" "
C:\Windows\system32\cmd.exe /c ""C:\Program Files (x86)\WinSCP\WinSCP.exe" /command "option batch abort" "open sftp://user:password@server/ -hostkey=""ssh-rsa myhostkey""" "put D:\D:\Fiserv Reports\Data\Output\CBA\NSW\PROD.CBA* /remotedir/remotesubdir/" "exit" "
Note: I am calling this via a AutoHotkey script. Thanks in advance
Last edited by poo_noo on 2014-04-17 01:56; edited 2 times in total