Example:
[Process] IniWrite,%target_win%\%pFileBox1%,Test,Key,just-a-test Add_Shortcut,AutoStart,,"#$pSystemRoot#$p\SYSTEM32\notepad.exe","TestShortCut",,#$q#$pSystemRoot#$p\%pFileBox1%#$q
if you enter in the FileBox "MyTest.ini" (WITHOUT spaces) is the result:
... shortCutExe=%SystemRoot%\SYSTEM32\notepad.exe shortCutToolTip= shortCutParameters=%SystemRoot%\MyTest.ini ...
if you enter in the FileBox "My Test.ini" (WITH a space) is the result:
... shortCutExe=%SystemRoot%\SYSTEM32\notepad.exe shortCutToolTip= shortCutParameters=%SystemRoot%\My <--- ? ...I've tried all possibilities with #$s, #$q, "strFormat, REPLACE, ...", and so on.
I have a workaround, where I renamed the file in the parameter. But how can I create a Shortcut with spaces in the parameters?
Guido.