norbs101
asked on
Kernel32.dll function index? Programatically run dos commands.....
I'd like to find a list of available functions or is it procedures that are within Kernel32.dll and also shell32.dll if possible. I havent had any luck with this.
Also, CAN I run command prompt functions suchs as "copy, rename, delete, mkdir....etc" and expecially
"DIR" programatically, using a dll.?.
Norbert Jurkiewicz
The Carlisle Group
Also, CAN I run command prompt functions suchs as "copy, rename, delete, mkdir....etc" and expecially
"DIR" programatically, using a dll.?.
Norbert Jurkiewicz
The Carlisle Group
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I would rather try to CreateProcess using "command.com" as an application name and change its standard input and output in lpStartupInfo argument for CreateProcess call. The reason is because (as I guess) all those commands ("copy", "dir" etc) are being translated to "real" commands somewhere inside the dll, and the way it is done is not guaranteed to stay unchanged. On the contrary, the syntax of "copy" etc should not change. I did not try this trick myself yet though.
ASKER
Now, what about running the command prompt functions?