Run programs from application

  • Thread starter Thread starter brambilla
  • Start date Start date
B

brambilla

Hi at all!

I'm developping an application in VB.NET 2005 for windows ce 6.0
embedded and from this application i need to
run a program (for example cmd.exe). I am trying to use the "Shell"
command to run the program but when I try it I always get an error
saying "file not found".
For example:
dim ID as integer
ID = Shell("""\windows\cmd.exe""", AppWinStyle.NormalFocus, True, -1)

In msdn on-line i read that "Shell" command is supported by
compactframework 2.0.

My target is to show the windows date/time tab:
ID = Shell("""CtlPnl.exe"" \windows\cplmain.cpl,13",
AppWinStyle.NormalFocus, True, -1)
If i execute this command (CtlPnl.exe \windows\cplmain.cpl,13) from
command prompt, it work fine.

Any ideas?
Does it miss something in the O.S. design?
Any information will be very appreciated.
Thankyou very much
Ale
 
Try using Process Start e.g.

Process.Start("\windows\ctlpnl.exe","\windows\cplmain.cpl,13")

Peter
 
Try using Process Start e.g.

Process.Start("\windows\ctlpnl.exe","\windows\cplmain.cpl,13")

Peter

--
Peter Foot
Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility










- Show quoted text -

Hi Peter

Thank you very much, now work fine!

Regards
Ale
 
Hi!

I'm developping an application in VB.NET 2005 for windows ce 6.0
embedded
I need to write a "simple" audio application that stores and generates a
sinusoid waveform using a lookup table.

My workstation is ready to start Audio drivers and os configurations are
ok!

Any ideas or suggestions?
(books, web sources,esperiences are well accepted)

thanks!
 
What does this have to do with the topic of the thread to which you posted,
"Run programs from application"?

There's no managed code support for that sort of audio stuff in the
framework itself. You might look around for format information for .wav
files, etc.

Paul T.
 
Back
Top