escape double quote in vb string
- by JKS
i have used following piece of code to execute schtasks command from vb6 while executing it ignores folder if it contains space
For example
"C:\program files\test\test.exe" will be converted to "c:\program " how do i solve this issue?
MyAppname = Chr(34) & App.Path & "\" & App.EXEName & ".exe" & Chr(34)
StrCommand = "schtasks /create /sc ONLOGON /RL HIGHEST /tn myapp /tr " & MyAppname
Shell StrCommand, vbHide
thanks in advance