-
i get the command line by doing Command()
it gives me:
"C:\TheFilePath\example.exe"
but it puts the quotes in!
how do i get the quotes out????? is the a function or something to remove quotes from a string? any help is appreciated.
thanks in advance.
-
I am sorry, I dont know the code, but I can suggest triming 1 character from the left, and 1 from the right
hope that can be of any help
-
Trim Character (quotes in your case)
Code:
Function TrimChar(text As String, char As String) As String
If InStr(text, char) <> 0 Then
For x = 1 To Len(text)
If Mid(text, x, 1) = char Then
temp = temp
Else: temp = temp & Mid(text, x, 1)
End If
Next x
TrimChar = temp
Exit Function
Else
TrimChar = text
End If
End Function
x = Command$
newx = TrimChar("" & x & "", Chr$(34))
MsgBox newx