In Vb if you have to manage quotes (") inside a string you have to
double them.
As Vb assumes quotes as the beginning and the end of a string, when it
encounters the quotes sign (CHR$(34)) doubled it will handle this
combination as a single char.
For example you could write
Dim MyPath as String
MyPath = Chr(34) & "C:\Program Files" & CHR$(34) 'First Method
MyPath = """C:\Program Files""" 'Second method
The two methods lead to the same result. Choose the one you prefer.
Jon ha scritto:
Quote:
> Ie
> Shell (" filename.exe " +Path,4)
> My problem is long file names
> I need the path to have a "" around it in the DOS command line call.
> ie
> filname.exe "C:\Program Files"
> how can I make a " be part of a string or fix the above?