I am trying to run a command line in vb6 and it won't work because of a " character in the command.
Here is the code I can run in command line and it works but when doing it from the VB it gets screwed up.
AlarmSummaryUtility 10 TP=1;PT=4 "W h:m:s:F:p" /export
Following is VB script that does not work because I think the command already has "" around the one section:
Dim command As String
command = AlarmSummaryUtility 10 TP=1;PT=4 "W h:m:s:F:p" /export
shell "CMD.exe /c " & command
End Sub
The issue is that in the command I am trying to execute, it already has "W h:m:s:F:p".
Is there any other way to do this?