RE: How can I run another application?
From: skicow (anonymous_at_discussions.microsoft.com)
Date: 03/24/04
- Next message: skicow: "RE: System.MethodMissingException Problem"
- Previous message: bic: "Microsoft Previews Upgrades for Mobile .NET"
- In reply to: Sven Rutten: "How can I run another application?"
- Next in thread: Sven Rutten: "Re: How can I run another application?"
- Reply: Sven Rutten: "Re: How can I run another application?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 05:16:07 -0800
Hi,
You can P/Invoke CreateProcess.
Public Declare Function CreateProcess Lib "coredll.dll" Alias "CreateProcess" (ByVal imageName As String, ByVal cmdLine As String, ByVal lpProcessAttributes As Integer, ByVal lpThreadAttributes As Integer, ByVal boolInheritHandles As Int32, ByVal dwCreationFlags As Int32, ByVal lpEnvironment As Integer, ByVal lpszCurrentDir As Integer, ByVal si As Integer, ByVal pi As Integer) As Integer
And then call it in code:
CreateProcess("App.exe","",0,0,0,0,0,0,0,0)
hth
- Next message: skicow: "RE: System.MethodMissingException Problem"
- Previous message: bic: "Microsoft Previews Upgrades for Mobile .NET"
- In reply to: Sven Rutten: "How can I run another application?"
- Next in thread: Sven Rutten: "Re: How can I run another application?"
- Reply: Sven Rutten: "Re: How can I run another application?"
- Messages sorted by: [ date ] [ thread ]