Try this:
Dim process As New System.Diagnostics.Process
Dim startInfo As New ProcessStartInfo( _
ControlChars.Quote & AppDomain.CurrentDomain.BaseDirectory &
"saveMylist.bat", sMYDir)
process.StartInfo = startInfo
process.Start()
--
Carsten Thomsen
Communities -
http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work but
they try anyway, and which sometimes actually work, such as recompiling
everything. (Karl Lehenbauer)
---------
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> eric.gofo...@gmail.com wrote:
>
>> I had problems with spaces i the patch when I tried running the command
>> from a command prompt, so I tried changing the commandline to:
>>
>> System.Diagnostics.Process.Start(ControlChars.Quote &
>> AppDomain.CurrentDomain.BaseDirectory & "saveMylist.bat" " &
>> ControlChars.Quote & " " & sMYDir)
>>
>
> I had an extra quote in there, it should be:
>
> System.Diagnostics.Process.Start(ControlChars.Quote &
> AppDomain.CurrentDomain.BaseDirectory & "saveMylist.bat" &
> ControlChars.Quote & " " & sMYDir)
>