cmd in programming
-
hello friends, How can I have my command prompt in the programming? for example I want to write "attrib +h +s [address]" and run the attrib.exe in my program procedure (with the arguments (+h and +s)) and see the output lines if any. how is that? thanks
-
hello friends, How can I have my command prompt in the programming? for example I want to write "attrib +h +s [address]" and run the attrib.exe in my program procedure (with the arguments (+h and +s)) and see the output lines if any. how is that? thanks
You can use Process class to start attrib.exe with the parameters you need. You can also redirect standard input and output to read/write input/output. A simple google search will bring many examples. Have a look at this too: Command Prompt Control[^]
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion
-
hello friends, How can I have my command prompt in the programming? for example I want to write "attrib +h +s [address]" and run the attrib.exe in my program procedure (with the arguments (+h and +s)) and see the output lines if any. how is that? thanks