For every question, there's an answer -- and you'll find it here!


Printer-friendly copy
Top The PC Q&A Forum The Computer Forum topic #246296
View in linear mode

Subject: "Edit CMD in another program" Previous topic | Next topic
Josh NTue Aug-26-03 04:15 PM
Charter member
1523 posts
Click to send email to this authorClick to view this author's profileClick to add this author to your buddy list
"Edit CMD in another program"


  

          

How do you change the program that a CMD file (or any file that can be run and edited, ie: vbs, js, bat) is edited in? When looking under File Types, CMD isn't available. When looking at vbs, I'm not seeing what it is that changes the way it's edited.

TIA

  

Alert Printer-friendly copy | | Top

Replies to this topic
Subject Author Message Date ID
RE: Edit CMD in another program
Aug 26th 2003
1
RE: Edit CMD in another program
Aug 27th 2003
4
      RE: Edit CMD in another program
Aug 28th 2003
5
           RE: Edit CMD in another program
Aug 29th 2003
6
                RE: Edit CMD in another program
Aug 29th 2003
7
RE: Edit CMD in another program
Aug 27th 2003
2
RE: Edit CMD in another program
Aug 27th 2003
3

SteveYandlTue Aug-26-03 05:17 PM
Charter member
6481 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#1. "RE: Edit CMD in another program"
In response to Josh N (Reply # 0)


          

Josh,

I just place a shortcut to my favorite editor(s) in the SendTo folder and get in the habit of using that instead of the edit command. Sure, it is one more step in the context menu but it is consistent. There is an "edit" subkey for the batfile file type but I think some of the context menu stuff for scripting languages like vbs and js are buried in the scripting run time or other dll files.

  

Alert Printer-friendly copy | | Top

    
Josh NWed Aug-27-03 12:54 PM
Charter member
1523 posts
Click to send email to this authorClick to view this author's profileClick to add this author to your buddy list
#4. "RE: Edit CMD in another program"
In response to SteveYandl (Reply # 1)


  

          

Thank ya Steve. This will work just fine.

  

Alert Printer-friendly copy | | Top

        
R2Thu Aug-28-03 02:13 PM
Charter member
1129 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#5. "RE: Edit CMD in another program"
In response to Josh N (Reply # 4)
Thu Aug-28-03 02:38 PM by R2

  

          

Send To will likely work fine.

However, if this is not what you desire, then it is a very simple registry edit to add an "Edit" right-click Context Menu item to any or ALL file extensions.


Attachment #1, (jpg file)

  

Alert Printer-friendly copy | | Top

            
therubeFri Aug-29-03 02:57 AM
Member since Jan 22nd 2003
16607 posts
Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#6. "RE: Edit CMD in another program"
In response to R2 (Reply # 5)


  

          

And the simple registry edit is ...

  

Alert Printer-friendly copy | | Top

                
R2Fri Aug-29-03 06:12 AM
Charter member
1129 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#7. "RE: Edit CMD in another program"
In response to therube (Reply # 6)
Fri Aug-29-03 06:13 AM by R2

  

          

I left it open-ended because it would depend on the path to the exact program that the user desires to use as the Editor -- and whether or not the user wants it on all files or just .cmd files.

But... in WinXP, isn't there a fly-out "Open With >" option? That would be the simplest method.

(I use Win98 so I have to use a thid-party add-in.)

  

Alert Printer-friendly copy | | Top

therubeWed Aug-27-03 03:17 AM
Member since Jan 22nd 2003
16607 posts
Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#2. "RE: Edit CMD in another program"
In response to Josh N (Reply # 0)


  

          

I use the Vim (Gvim, unix text) editor.  It installs an
"Edit with Vim" right click option for all file
types.  I can right click any file & open it (whether
appropriate or not) in Vim.

I believe (NO GUARANTEES) these are the relevant registry
entries:

HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\gvim
"(Default)"
	Type: REG_SZ
	Data: {51EEE242-AD87-11d3-9C1E-0090278BBD99}
HKEY_CLASSES_ROOT\CLSID\{51EEE242-AD87-11d3-9C1E-0090278BBD99}\InProcServer32
"(Default)"
	Type: REG_SZ
	Data: C:\TMP\GVIM\VIM\VIM61\gvimext.dll
HKEY_CLASSES_ROOT\CLSID\{51EEE242-AD87-11d3-9C1E-0090278BBD99}\InProcServer32
"ThreadingModel"
	Type: REG_SZ
	Data: Apartment
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell
Extensions\Approved
"{51EEE242-AD87-11d3-9C1E-0090278BBD99}"
	Type: REG_SZ
	Data: Vim Shell Extension


(Actually the InProc... above probably will not apply).


This could probably be modified to use wordpad or whatever in
place of Vim.

  

Alert Printer-friendly copy | | Top

therubeWed Aug-27-03 03:18 AM
Member since Jan 22nd 2003
16607 posts
Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#3. "RE: Edit CMD in another program"
In response to Josh N (Reply # 0)


  

          

Here are some (somewhat) related articles.


<http://www.jfitz.com/tips/rclick_custom.html>
Customizing Right-Click Menu Options in Windows


<http://vim.sourceforge.net/tips/tip.php?tip_id=279>
On Windows, make GVim the default action for double-click with "unknown file types"
(be sure & read the full post)

  

Alert Printer-friendly copy | | Top

Top The PC Q&A Forum The Computer Forum topic #246296 Previous topic | Next topic
Powered by DCForum+ Version 1.27
Copyright 1997-2003 DCScripts.com
Home
Links
About PCQandA
Link To Us
Support PCQandA
Privacy Policy
In Memoriam
Acceptable Use Policy

Have a question or problem regarding this forum? Check here for the answer.