deBUGger Posted January 23, 2004 Posted January 23, 2004 Hi everyone... I have a problem here... I'm trying to open an exe file when I click on a button. The problem is I'm kind of new in this stuff and I don't have no idea what to do... Can anyone help me? Thanks in advance! Quote
jspencer Posted January 23, 2004 Posted January 23, 2004 Try: Process.Start("C:\pathto.EXE", Arguments) Quote
deBUGger Posted January 23, 2004 Author Posted January 23, 2004 Hum, doesn't work... it says "Unrecognized escape sequence" Quote
Administrators PlausiblyDamp Posted January 23, 2004 Administrators Posted January 23, 2004 try either Process.Start(@"C:\pathto.exe",arguments) //or Process.Start("C:\\pathto.exe",arguments) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
deBUGger Posted January 24, 2004 Author Posted January 24, 2004 Thanks to your help, me and my boyfriend figured this out: ------------------------------------------------------------------------------------ using System.Diagnostics; Process apli= new Process(); apli.StartInfo.FileName =@"filename.exe"; apli.StartInfo.WindowStyle=ProcessWindowStyle.Normal; apli.Start(); ------------------------------------------------------------------------------------ Thanks a lot, it really helped!!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.