On 09/23/2012 05:07 PM, Brian Dude wrote:
> Hello, is there any way to open up a file using a shortcut to the old
> DOS-based "Edit" program?
> Certainly I can open up CMD.EXE and type:
> EDIT whatever.fil
> But I'd like a way to do this in one step, so that I can possibly make a
> right-click menu option out of it.
> I tried using the '/K' switch for CMD.EXE but I can't figure out how to
> pass the file name to it.
> I tried:
> /K edit %1
> and
> /K edit %s
> but those both open an edit session with a file named "%1" and "%s".
>
> TIA,
> Brian
Just create a batch file (in notepad) called editor.bat (or
whatever name you want as long as it ends in .bat
it should contain the text:
start cmd /k "edit"
Once you run it, it will open an untitled file which you can name
but hitting alt-f-x then save as....and choose the name you want
--
https://www.createspace.com/3707686