Author |
Message |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Sat Jul 30, 2005 12:03 am Post maybe stupid 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. _________________ SubSpace Discretion: A Third Generation SubSpace Client |
|
Back to top |
|
 |
Kameloh Novice
Age:38 Gender: Joined: Jul 07 2003 Posts: 37 Offline
|
Posted: Sat Jul 30, 2005 12:19 am Post maybe stupid 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. |
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: Sat Jul 30, 2005 12:37 am Post maybe stupid Post subject: |
 |
|
|
|
Kameloh wrote: | Goto properties and it should show "opens with...". |
Is that so? |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:43 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Sat Jul 30, 2005 12:48 am Post maybe stupid 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. _________________ There are 7 user(s) ignoring me right now. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Sat Jul 30, 2005 1:02 am Post maybe stupid Post subject: |
 |
|
|
|
The properties doesn't show open with...
But Cerium's soltion seems to solve the edit issue
 |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Sat Jul 30, 2005 1:20 am Post maybe stupid 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:
 |
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: Sat Jul 30, 2005 1:51 am Post maybe stupid Post subject: |
 |
|
|
|
hehe, Bak you are a master sleuth. |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sat Jul 30, 2005 2:32 am Post maybe stupid 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. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:36 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Sat Jul 30, 2005 2:47 am Post maybe stupid 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. |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Sat Jul 30, 2005 3:10 am Post maybe stupid 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. _________________ Current Terror Alert Level
 |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Sat Jul 30, 2005 10:27 am Post maybe stupid 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. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Jul 30, 2005 2:39 pm Post maybe stupid 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. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Maverick

Age:41 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Sat Jul 30, 2005 2:59 pm Post maybe stupid Post subject: |
 |
|
|
|
Yup me too, Textpad is cool - not to mention "free" _________________
|
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Jul 30, 2005 3:11 pm Post maybe stupid 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. |
|
Back to top |
|
 |
Maverick

Age:41 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Sat Jul 30, 2005 3:13 pm Post maybe stupid Post subject: |
 |
|
|
|
www.disney.com does the trick most of the time, Dr Brain  |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:43 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Sat Jul 30, 2005 4:35 pm Post maybe stupid Post subject: |
 |
|
|
|
I figured it was in the registry. I gave up after following a bunch of GUIDs that got me nowhere.
Good find. |
|
Back to top |
|
 |
|