howdy, I would like to use a dos command. example when I press a button, I would like it to envoke a dos console program along with commands.How do I do this?
Acron's suggestion will open a dos session, but if you want to run dos commands then you need to create a DOS batch file, then call the batch file from the shell() command.
You might want to use command.com in place of cmd.exe for backward compatiblity (cmd.exe is only available on NT-based systems and will not run 16-bit DOS programs).
Also, if you use only the path/filename of your batch file the DOS window remains after the batch file executes and must be closed manually. Use of the second syntax above allows the DOS session to terminate without intervention.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.