Link to home
Start Free TrialLog in
Avatar of norbs101
norbs101Flag for United States of America

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
ASKER CERTIFIED SOLUTION
Avatar of AnnaNachesa
AnnaNachesa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of norbs101

ASKER

Great answer about the kernel32..


Now, what about running the command prompt functions?
Avatar of AnnaNachesa
AnnaNachesa

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.