Welcome to the Most Awesome Programming in the world of computing !!!
;Run a DOS command
invoke GetEnvironmentVariable, ADDR szComSpec, ADDR szDOScommand, SIZEOF szDOScommand
;Look Ma, No Window !!!
invoke GetStartupInfo,ADDR l_StartupInfo
invoke CreateProcess,
ADDR szDOScommand,
ADDR szDOScommandTail,
NULL,
NULL,
FALSE,
CREATE_NO_WINDOW,
NULL,
NULL,
ADDR l_StartupInfo,
ADDR l_Process_Information
In szDOScommandTail, set the DOS command you want. "Dir > Dir.txt",0
You need to set your own local variables for CreateProcess to work.
Tweak it for yourself and enjoy !!!
Regards, P1