Can I use ShellExecute to run a dos internal command.

Ex. DEL /F/A *.txt
Posted on 2010-04-17 17:34:42 by skywalker
you can start the DOS window and use the command as parameter, like this

ShellExecute (Handle, "open", "cmd.exe", "/k dir", 0, SW_SHOW);

have a look at the possible parameters here: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cmd.mspx?mfr=true
Posted on 2010-04-21 06:05:55 by beaster
cmd.exe != DOS :)
Posted on 2010-04-21 08:40:35 by f0dder

cmd.exe != DOS :)


Be nice.

Posted on 2010-04-22 09:15:27 by skywalker