how to do this in code?

  • Thread starter Thread starter Dzemo
  • Start date Start date
D

Dzemo

when i go to start-run and write
"mode com1:9600,n,8,1"
with this i set set com1 port.
How to write this in code. Exe is "mode" and "com1:9600,n,8,1" are arguments
thx
 
when i go to start-run and write
"mode com1:9600,n,8,1"
with this i set set com1 port.
How to write this in code. Exe is "mode" and "com1:9600,n,8,1" are arguments
thx

Look at the Process class and the ProcessInfo classes. They are used to
start processes.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Dzemo said:
when i go to start-run and write
"mode com1:9600,n,8,1"
with this i set set com1 port.
How to write this in code. Exe is "mode" and "com1:9600,n,8,1" are
arguments

\\\
Imports System.Diagnostics
..
..
..
Dim psi As New ProcessStartInfo()
With psi
.FileName = "mode"
.Arguments = "com1:9600,n,8,1"
End With
Process.Start(psi)
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top