Copying a file with space in filename
Verfasst: 14 Aug 2014, 17:55
Dear all,
In [Actions]:
In the subroutine:
Output when running the script:
Clearly the Copy command has not handled the space in the variable. How can I solve this, please? Is there some escape character? I can't find any references to this scenario in winst reference.
Thanks for any help.
Ian Gibbs
In [Actions]:
Code: Alles auswählen
DefVar $Shortcut$
Set $Shortcut$ = "%ScriptPath%\" + "Triton Black.lnk"
Code: Alles auswählen
[Files_copy_sso]
Copy $Shortcut$ "C:\Users\Public\Desktop"
Code: Alles auswählen
Error: Directory C:\Windows\system32\Black.lnk "C:\Users\Public\Desktop" does not exist and cannot be created
Thanks for any help.
Ian Gibbs