View Full Version: if you need dos prompt commands

C++ Learning Community > C++ Tips > if you need dos prompt commands


Title: if you need dos prompt commands
Description: something else i figured out by accident


ih8censorship - June 29, 2003 08:45 PM (GMT)
if you need dos prompt commands in your program you can put in your source
CODE

system("command");


i first knew about this system call thing with "system("pause") and i wanted my program to pause for a few seconds so i typed system("10 ") for 10 seconds and it said bad command or filename and that got me thinking that "pause" must be a command prompt command, so i tryed system("netstat") and it gave me a netstat just like if i typed it in a dos prompt. i was trying to delete a file by using system("deltree") but i couldent figure out where to put the path. oh well i just figured this would probley be useful for someone sometime ;)

StarReaver2 - June 30, 2003 12:10 AM (GMT)
Hey now we know how the one person on the forum allowed a DOS command prompt DLL! That's nice to know!

Stuy GM - August 19, 2003 11:33 AM (GMT)
i'll make a trojan outa that! thx ih8!

ih8censorship - August 19, 2003 10:41 PM (GMT)
yeah right. if you did it would be a lame trojan.

Mastiff Odit - October 29, 2003 03:42 AM (GMT)
Ha ha ha ha!
Thats funny.

Anyway that really useful thanks!




* Hosted for free by InvisionFree