Cmndline args with CreateProcess

Cmndline args with CreateProcess

I'm trying to spawn the MS-DOS Editor with CreateProcess. How do I include the argument 'edit' in my call to CreateProcess? The MS-DOS Editor is normally opened by typing 'edit' at the DOS command prompt.

This is my code:
bret = CreateProcess(NULL, ''C, NULL, NULL,
NULL, NULL, loc(si), loc(pi))

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Try replacing with


Any particular reason why you want to use that editor?

I would suggest instead using ShellExecute and the "Edit" verb. (However, you can't wait for the editor to finish this way.)


Retired 12/31/2016

Thanks guys.

Steve, my boss likes the MS-DOS Editor to create formatted input files for his Fortran console applications. It's a little old-school, but he's the boss. :)

Leave a Comment

Please sign in to add a comment. Not a member? Join today