Page 1 of 1

Execute Dos command

PostPosted: May 26th, 2004, 11:52 am
by chasoft
Hi everybody,
I want to execute Dos commands such as md, del, subst.... but I don't know how to execute them directly. The solution which I took here is to write to a bat file and execute it but I think it's too bad. So If you know how to execute Dos command directly, please show me.

Thanks you very much,

PostPosted: May 31st, 2004, 9:29 am
by Johnny_Bit
as far as i remember it is to execute "command.com /c "command""

!

PostPosted: June 6th, 2004, 1:00 pm
by chasoft
Thanks for your replying. I tried but... failed (I tried ShellExecute). So please show me a small example.

Thanks.

PostPosted: June 8th, 2004, 7:37 am
by Johnny_Bit
it depends on version of windows you have...

on 9x is like i said, but on NT is cdm.exe /c command commandparams

Reply

PostPosted: June 8th, 2004, 2:36 pm
by chasoft
Oh! I'm using Windows XP Pro

PostPosted: June 9th, 2004, 6:39 am
by Johnny_Bit
XP is NT...

ShellExecute example still needed?