System.Diagnostics.Process.Start(str) with parameter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I got the str from registry and exeute, these string might include "," and
"/" and
"-" with parameter..., for ex.
str = rundll32.exe "%ProgramFiles%\INTERN~1\hmmapi.dll",OpenInboxHandler
str = "C:\PROGRA~1\MICROS~4\OFFICE11\OUTLOOK.EXE" /recycle
str = "C:\Program Files\Internet Explorer\iexplore.exe" -nohome

this might can use ProcessStartInfo, but I need split "," "/" "-", any
better solution for it?
 
Back
Top