Shortcut to 'Edit"?


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
 
Ad

Advertisements

D

Disbelief

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.
 
P

philo

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
 
Ad

Advertisements

B

Brian Dude

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

shortcuts missings 1
Desktop Shortcut 1
keyboard shortcut 1
ISP Shortcut 1
Internet Shortcuts 0
Shortcut to desktop 2
shortcuts on desktop 1
Shortcuts and Icons 5

Top