You can run DOS (and Windows) programs using the Windows API WinExec() function.
WinExec('C:\\NC.exe', SW_NORMAL); { DOS program }
WinExec('notepad.exe', SW_MAXIMIZED); { Windows program started in maximized form }
For Win32 program you should use the CreateProcess() function although there will be no problems when you use this one.
Tags: api, code, createprocess, Delphi, dos, dos program, execute, open source, program, routine, run, source, source code, tip, trick, win32 program, windows, windows api, windows program, windows programs, winexec
Merlin’s Delphi Forge
Leave a comment