Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi..
how can my programm be connected with the operating system?
to order commands like open word ,or any commands for windows
Posted
Comments
Toli Cuturicu 15-Mar-11 15:01pm    
Your program [programme (British) but never programm] is already "connected" to the OS, since it was the OS who started it in the first place...

1 solution

You should use Process.Start(); in order to do that;

Some examples links for you;

For command prompt[^]

Other variations for Process.Start()[^]
 
Share this answer
 
Comments
fjdiewornncalwe 15-Mar-11 14:54pm    
Can't argue with that. +5.
Orcun Iyigun 15-Mar-11 15:15pm    
:)
alaa cs 15-Mar-11 15:56pm    
thankssssss
-
is this sufficient to order commands for windows to open new word or new powerpoint or to cope some text or to print -from specific action.
like take a pic. & compare it with Images stored,,in db..
after that the commend will be order
Sergey Alexandrovich Kryukov 15-Mar-11 15:02pm    
Yes, a 5.
--SA
Sergey Alexandrovich Kryukov 15-Mar-11 15:03pm    
@Alaa: what's to be connected with the operating system? what's "not so easy"?
For your information, your application is "connected to the OS" all the time... It sounds like your're very much confused about applications and systems...
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900