It is possible to execute DOS commands with variables from C++ ?and if it is..how? Ej: net send variable1.server.com variable2
thanks!!!
It is possible to execute DOS commands with variables from C++ ?and if it is..how? Ej: net send variable1.server.com variable2
thanks!!!
system("command");
system("command");
You can use cstdlib as well, but be sure to code the rest of your code in ANSI C++ then.Code:#include <stdlib.h> // For system() int main() { system("date"); return 0; }
you can also use process.h
hey, i just recently made a program that uses the net send thing, if you want the code i can post it for you
The correct way to access DOS commands is via int 21h. There are a host of functions that you can access on this interrupt.
Check the DOS tech refs for information on correct register values and on how to interpret return values.
Bubba=ASM Lover