PC Review


Reply
Thread Tools Rate Thread

Shortcut to 'Edit"?

 
 
Brian Dude
Guest
Posts: n/a
 
      23rd Sep 2012
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
 
Reply With Quote
 
 
 
 
Disbelief
Guest
Posts: n/a
 
      24th Sep 2012
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


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.


 
Reply With Quote
 
 
 
 
philo
Guest
Posts: n/a
 
      24th Sep 2012
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
 
Reply With Quote
 
Brian Dude
Guest
Posts: n/a
 
      24th Sep 2012
>
> 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!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with shortcut/Missing shortcut =?Utf-8?B?UHJvYmxlbSB3aXRoIHNob3J0Y3V0?= Windows XP General 4 23rd Feb 2005 01:02 PM
How to reset windows xp shortcut keys...not word's shortcut =?Utf-8?B?UGVycnk=?= Windows XP Help 1 27th Dec 2004 01:55 PM
Shortcut key: where must the shortcut be? Jack Crane Windows XP Help 5 31st Jan 2004 02:01 AM
Desktop CD shortcut loses correct shortcut spectra7045 Windows XP General 2 4th Jan 2004 06:08 PM
FAQ - creating desktop shortcut from batch file - without shortcut.exe Tom Lavedas Windows XP General 0 9th Sep 2003 06:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:39 AM.