Looking for a site that, even if barely getting you started, shows what command in C you can use to run windows commands.
Like in unix you can call execl("bin/ls","ls","0"); and that will run the ls command for you, and then some forks etc.
Does anyone know of a good tutorial on running windows commands in the C Language?
There are two ways to do this from C language.
system("command goes here") is the most compatible. It has less control as it spawns an intermediate cmd shell to start the program.
Linux/Unix has exec???() which can be used to start external processes.
For Windows there is a spawn() command with some variants like spawnv() or spawnvpe().
Check your compiler docs.
Reply:Check out this article
http://www.codeguru.com/cpp/w-p/system/a...
You can learn how to run commands as the current logged in user or any user !!!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment