LiveWire Peer Support Network

Printable Version of Topic "Anyone good with C++:"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- Anyone good with C++: (http://www.golivewire.com/forums/peer-pesais-support-a.html)


-- Posted by RossTheHoss69 at 7:56 pm on Feb. 13, 2008

Okay, I'm slowly learning C++.
I'm using DevCPP 4.9.9.2.
I can basically do simple programs with variables and whatnot.

What I need to know is this:
Can you write a program with C++ to do the basic functions used in the Command Prompt?

ie like writing a program to run the line
Code:

shutdown -r
in the command prompt??

EDIT: Nevermind.
I figured out that you don't need C++, you just need to save the function as a .BAT file.


-- Posted by ALucidThought at 7:57 pm on Feb. 13, 2008

Yep. Rather simple.


-- Posted by RossTheHoss69 at 7:59 pm on Feb. 13, 2008

Quote: from ALucidThought at 9:57 pm on Feb. 13, 2008


Yep. Rather simple.

can you explain?


www.golivewire.com