Shortcut to 'Edit"?

  • Thread starter Thread starter Brian Dude
  • Start date Start date
B

Brian Dude

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
 
Brian said:
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

Is this what you want?

On the desktop, right-click>new and select Shortcut. In the dialogue box,
type "C:\WINDOWS\system32\edit.com" (without the quotes)>click on Next and
give the shortcut a name and then click Finish.
 
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
 
Is this what you want?

On the desktop, right-click>new and select Shortcut. In the dialogue box,
type "C:\WINDOWS\system32\edit.com" (without the quotes)>click on Next and
give the shortcut a name and then click Finish.

Yes it is. Thank you!
 
Back
Top