What OpenNETCF stuff? The Process class is part of the CF, so you just call it like so:
System.Diagnostics.Process.Start("wceload.exe", "my params");
It's pretty well documented online:
http://msdn.microsoft.com/en-us/libr...s.process.aspx
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"Harry Simpson" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
I'm in VS2008, trying to create a simple little CF app to run WCELOAD to execute a CPF.
I've added a reference to OpenNETCF but for the life of me cannot find the diagnostics namespace....The smart device app wants me to use
Namespace System.Diagnostics
Member of System
Where do I hook into the OpenNETCF stuff
I've seen references in the archives to this - some with extra whacks and some without so I'm a little confused.
Anything wrong with this syntax that's pops out?
Dim argPath As String = "/noaskdest /noui \Storage Card\\pprofile.cpf"
Dim argName As String = "\" + argPath + " \"
Dim programPath As String = "\windows\\wceload.exe"
Dim programName As String = "\" + programPath + "\"
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Process.Start(programName, argName)
End sub
The programName, argName in a messagebox looks like this:
\\windows\\wceload.exe\ \/noaskdest /noui \Storage Card\\pprofile.cpf\
Which when I run the silly app I get a Win32 error so....it's probably as bad as it looks....