Hi,
I am using version 4.1.8 and have got a wise script which runs an automated file upload however I'm having an issue with the UNC path having a blank space ie "D:\Test\BOXIT\my[space]test\more[space]test\test"
This is the script:
Set Variable
  Variable=WINSCP
  Value=c:\Program Files\WinSCP\winscp.exe
end
Set Variable
  Variable=FILELOC1
  Value=""""D:\Test\BOXIT\my test\more test\test""""
end
Set Variable
  Variable=PASS
  Value=XXXXXXXXXXXX
end
Execute Program 
  Pathname=%WINSCP%
  Command Line=/console /command "open XXXX\%PASS%" "option confirm off" "put %FILELOC1%\ /XXXX/XXXXX/Test" "exit"
  Flags=00000010
end
I have tried the normal thing of using double quotes and even double double quotes but keeps erroring with the following:
[i][i]Searching for host...
Connecting to host...
Authenticating...
Using username "XXXXX\XXXXX".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] XXXXX\XXXXX@ftp.XXXXX.co.uk
confirm      off
D:\Test\BOXIT\my          |          0 KiB |    0.0 KiB/s | binary |   0%
File or folder 'D:\Test\BOXIT\my' does not exist.
System Error.  Code: 2.
The system cannot find the file specified
(A)bort, (R)etry, (S)kip, Ski(p) all:[/i][/i]
As you can see it breaks the path at the blank space and errors.
Although we get round the issue by creating a static drive mapping that however requires a user account to be logged on 24x7, unfortunately when the machine is rebooted and the account is not logged back on, the automated script fails as it can no longer see the static drive mapping.
Any help would be greatly appreciated.