- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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, 'command.com'C, NULL, NULL,
FALSE, IOR(CREATE_DEFAULT_ERROR_MODE,NORMAL_PRIORITY_CLASS),
NULL, NULL, loc(si), loc(pi))
This is my code:
bret = CreateProcess(NULL, 'command.com'C, NULL, NULL,
FALSE, IOR(CREATE_DEFAULT_ERROR_MODE,NORMAL_PRIORITY_CLASS),
NULL, NULL, loc(si), loc(pi))
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try replacing command.com with edit.com.
James
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.)
Steve
I would suggest instead using ShellExecute and the "Edit" verb. (However, you can't wait for the editor to finish this way.)
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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. :)
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. :)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page