News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

"New" context menu and ASM template files

Started by dedndave, June 12, 2009, 06:57:13 AM

Previous topic - Next topic

dedndave

I wrote this one for .asm files, but the method is similar for .bat or .cmd files, as well
(the attached ZIP has the instructions, pictures, and the .reg file)

1) Create a file association for ASM files

   a) Open Windows Explorer
   b) Tools menu - Folder Options - File Types tab
   c) Check the list to see if the file association already exists (some IDE's may create it)
      If the file association already exists, you may skip to Step (2)
   d) New (Registered file type) button
   e) Enter the extension "ASM" (without the quotes)
   f) Click OK button - the file type now appears in the list
   g) Click on the ASM file type in the list to select it (highlight)
   h) Near the bottom - Details for 'ASM' extension - click the Advanced button
   i) Enter the name for the file type "Assembler File"
   j) Click on the Change Icon Button to select the "text file" icon
   k) Under "Actions", click the New button (to create a new action)
   l) In the Action window, type "Open"
   m) In the Application window, type "C:\Windows\system32\Notepad.exe %1
   n) Check the "Use DDE box
   o) In the DDE Application window, type NOTEPAD
   p) In the DDE Topic window, type "System"
   q) Click the OK buttons to close all windows

2) Add the file type to the "New" context menu

   a) Create a .reg file with the following text in it:

REGEDIT4

[HKEY_CLASSES_ROOT\.asm\ShellNew]
"NullFile"=""

   b) Click (or double-click) on the .reg file to import the file into the registry

3) Re-boot

For .asm files, you may also like to create a default template that has your favorite basic stuff in it
Create the .asm file template to suit your tastes
Name the file "AssemblerFile.asm"
Place it in the "C:\Documents and Settings\All Users\Templates" folder
Once the file is in the Templates folder, you may update it any time you like
Import the following .reg file.....

REGEDIT4

[HKEY_CLASSES_ROOT\.asm\ShellNew]
"FileName"="AssemblerFile.asm"

ZIP attached...
http://www.masm32.com/board/index.php?action=dlattach;topic=11457.0;id=6241