Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 131,715 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,384 people online right now. Registration is fast and FREE... Join Now!




code for runing dos commands in c

 
Reply to this topicStart new topic

code for runing dos commands in c

tazirul
post 20 Jul, 2006 - 11:00 PM
Post #1


New D.I.C Head

*
Joined: 20 Jul, 2006
Posts: 2


My Contributions


CODE

#include<stdio.h>
#include<process.h>//reqd. for system function prototype
main()
{
system(Dos command);/*In dos commands write the apropriate comand but it should be in windows\system32\*/
return 0;
}


This post has been edited by Dark_Nexus: 20 Jul, 2006 - 11:08 PM
User is offlineProfile CardPM

Go to the top of the page

Dark_Nexus
post 20 Jul, 2006 - 11:09 PM
Post #2


or something bad...real bad.

Group Icon
Joined: 2 May, 2004
Posts: 1,309



Thanked 1 times

Dream Kudos: 625
My Contributions


first of all i'd like to say, "welcome to dream in code!!" now let's get down to business. this post doesn't seem to have much of a purpose. are you asking a question? are you informing the community of this? i am not quite sure what you are trying to do here.
User is offlineProfile CardPM

Go to the top of the page

born2c0de
post 20 Jul, 2006 - 11:19 PM
Post #3


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,895



Thanked 34 times

Dream Kudos: 2800

Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions


Seems like you are trying to inform people about it.
In that case please post this code in the Code Snippets Section.

To Mods : Looks like new Members never seem to read the rules before they post.
User is offlineProfile CardPM

Go to the top of the page

Mrafcho001
post 21 Jul, 2006 - 11:37 AM
Post #4


D.I.C Addict

Group Icon
Joined: 1 Nov, 2005
Posts: 753



Thanked 5 times

Dream Kudos: 120
My Contributions


Although this may work on most system some systems might not have the system command. And this will only work on Windows.

And this is kind of a pointless post...
User is offlineProfile CardPM

Go to the top of the page

Dark_Nexus
post 21 Jul, 2006 - 12:14 PM
Post #5


or something bad...real bad.

Group Icon
Joined: 2 May, 2004
Posts: 1,309



Thanked 1 times

Dream Kudos: 625
My Contributions


hence the name of the topic
User is offlineProfile CardPM

Go to the top of the page

kaustubh
post 13 Mar, 2007 - 05:18 AM
Post #6


New D.I.C Head

*
Joined: 13 Mar, 2007
Posts: 1


My Contributions


hi this is kaustubh

iwant to implement DOS commands (copy rename paste dir/p etc etc) using C language.
Plz help me
User is offlineProfile CardPM

Go to the top of the page

ajwsurfer
post 13 Mar, 2007 - 09:01 AM
Post #7


D.I.C Regular

Group Icon
Joined: 24 Oct, 2006
Posts: 292



Thanked 2 times

Dream Kudos: 50
My Contributions


http://www.cplusplus.com/reference/clibrar...lib/system.html
wink2.gif
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/20/08 09:53AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month