I want to use .ExE extension to run command line using DOS command,,,,
but I don't know what function can I use.
Can you show me the way....thank you...sure ^^
Printable View
I want to use .ExE extension to run command line using DOS command,,,,
but I don't know what function can I use.
Can you show me the way....thank you...sure ^^
I'm sorry, but I have to say that I don't understand what you want to do - and I have sympathy with you, as I'm sure that English is a foreign language to you, but can you please try to explain in some other way what you want to do?
--
Mats
I think he wants to run a DOS command in his program. You can do that using system.
Thank you for your help ^^
.........
Its near my purpose.........but the question is "How can I put window command line in my program"
.............
for example, I can useto scan disk in batch file easily....Quote:
CHKDSK -
but, my goal is how can I use the command line in exe extension file instead of batch file
.............
The result is, I can click on my exe file directly without batch file anymore to scan disk.
.............Thank You...
It's command.com, not command.exe, although there is another shell shipped with XP called cmd.exe that is more Windowsy and less DOSy.
maybe you want this:Code:system("command.com /C \"CHKDSK -\"");