Server Help

Trash Talk - Windows Failed

Bak - Sat Jul 30, 2005 12:03 am
Post subject: Windows Failed


How do I associate a program to open a .bat file when Edit... is used. There is no Edit With... (there's no Open With... either, but that's because it expects you to run it when you double click it). I want to change the default editor for .bat files from notepad to one that understands *nix-style linebreaks.
Kameloh - Sat Jul 30, 2005 12:19 am
Post subject:
You can try renaming the .bat to a .txt, then converting it back to a .bat after you're done.

[Edit]

Goto properties and it should show "opens with...".

You can change it from there.
Muskrat - Sat Jul 30, 2005 12:37 am
Post subject:
Kameloh wrote:
Goto properties and it should show "opens with...".

Is that so?
Cerium - Sat Jul 30, 2005 12:48 am
Post subject:
Well, you can always attempt to add the file type manually.

I got the edit command to work, but I couldnt get the open command to work quite as it should have. Closest I got, was hitting some bug in the cmd.exe that cause it to spawn about 500 instances of itself whenever I ran my .abc files.

Folder Options -> File Types -> new -> type 'bat' -> new action...

Type your action name (open and edit), making sure open is default.

For edit I had:
"C:\Program Files\EditPlus 2\editplus.exe" %1

For open:
C:\WINDOWS\system32\cmd.exe /K %1


Maybe you can play around with the open thing, (or maybe its just cmd.exe not liking the .abc extension, who knows).

I checked the registry and found nothing on .bat and such, so I imagine its all internal since its basicly dos emulation type stuff.
Bak - Sat Jul 30, 2005 1:02 am
Post subject:
The properties doesn't show open with...


But Cerium's soltion seems to solve the edit issue

Bak - Sat Jul 30, 2005 1:20 am
Post subject:
Ack! I deleted my old bat setup.. ahaha

Found a fix at:
http://www.dougknox.com/xp/file_assoc.htm

The associated registry keys are at HKEY_CLASSES_ROOT\batfile

New problem, notice how BAT isn't listed, but can't be added without removing the old one:


the registry, however, doesn't lie:

Muskrat - Sat Jul 30, 2005 1:51 am
Post subject:
hehe, Bak you are a master sleuth.
Mine GO BOOM - Sat Jul 30, 2005 2:23 am
Post subject:
I personally like my method, having ever non-folder file display Notepad/Wordpad as options. Copy/paste the following into a .reg file and run it. Folder locations are set to WinXP by default.

Code: Show/Hide
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell]

[HKEY_CLASSES_ROOT\*\shell\notepad]
@="&Notepad"

[HKEY_CLASSES_ROOT\*\shell\notepad\command]
@="c:\\windows\\notepad.exe \"%1\""

[HKEY_CLASSES_ROOT\*\shell\wordpad]
@="&Wordpad"

[HKEY_CLASSES_ROOT\*\shell\wordpad\command]
@="c:\\program files\\windows nt\\accessories\\wordpad.exe \"%1\""

CypherJF - Sat Jul 30, 2005 2:32 am
Post subject:
I honestly just have 2 shortcuts in the Send-To - one to notepad, the other to wordpad. I also have a shortcut to a MD5 file generator just for the quick and easy.
Purge - Sat Jul 30, 2005 2:47 am
Post subject:
I made a shortcut key to get to Wordpad, so I can just simply open up the file. Something simple like Shift + Num0 is convenient.
50% Packetloss - Sat Jul 30, 2005 3:10 am
Post subject:
C:\Documents and Settings\YOURUSERNAME\SendTo

Just stick a text program in there that you like, i have a link to notepad in mine. So then you just right click and go to the sendto menu.
Mine GO BOOM - Sat Jul 30, 2005 10:27 am
Post subject:
CypherJF wrote:
I honestly just have 2 shortcuts in the Send-To - one to notepad, the other to wordpad. I also have a shortcut to a MD5 file generator just for the quick and easy.

Might want to give Summer Properties a go.
Dr Brain - Sat Jul 30, 2005 2:39 pm
Post subject:
I just use TextPad. It puts a TextPad link in the explorer shell, so you don't have to figure out how to do it manually.
Maverick - Sat Jul 30, 2005 2:59 pm
Post subject:
Yup me too, Textpad is cool - not to mention "free"
Dr Brain - Sat Jul 30, 2005 3:11 pm
Post subject:
It's annoyware. Asks you every now and again to ignore it. But other than that, it's as close to perfect as I've found.
Maverick - Sat Jul 30, 2005 3:13 pm
Post subject:
www.disney.com does the trick most of the time, Dr Brain sa_tongue.gif
Cerium - Sat Jul 30, 2005 4:35 pm
Post subject:
I figured it was in the registry. I gave up after following a bunch of GUIDs that got me nowhere.

Good find.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group