DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Execute Dos command

 
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
chasoft
Member


Joined: 20 Mar 2003
Posts: 17
Location: Vietnam

PostPosted: 26/05/04 11:52    Post subject: Execute Dos command Reply with quote

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,

_________________
Chasoft Homepage
http://www.chasoft.now.nu
http://www.chasoft.cjb.net
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 154

PostPosted: 31/05/04 09:29    Post subject: Reply with quote

as far as i remember it is to execute "command.com /c "command""
Back to top
View user's profile
chasoft
Member


Joined: 20 Mar 2003
Posts: 17
Location: Vietnam

PostPosted: 06/06/04 13:00    Post subject: ! Reply with quote

Thanks for your replying. I tried but... failed (I tried ShellExecute). So please show me a small example.

Thanks.

_________________
Chasoft Homepage
http://www.chasoft.now.nu
http://www.chasoft.cjb.net
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 154

PostPosted: 08/06/04 07:37    Post subject: Reply with quote

it depends on version of windows you have...

on 9x is like i said, but on NT is cdm.exe /c command commandparams
Back to top
View user's profile
chasoft
Member


Joined: 20 Mar 2003
Posts: 17
Location: Vietnam

PostPosted: 08/06/04 14:36    Post subject: Reply Reply with quote

Oh! I'm using Windows XP Pro
_________________
Chasoft Homepage
http://www.chasoft.now.nu
http://www.chasoft.cjb.net
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 154

PostPosted: 09/06/04 06:39    Post subject: Reply with quote

XP is NT...

ShellExecute example still needed?
Back to top
View user's profile
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group