Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Windows Failed

 
Post new topic   Reply to topic Printable version
 View previous topic  Happy Birthday Solo! Post :: Post Hosting suggestions  View next topic  
Author Message
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sat Jul 30, 2005 12:03 am   Post maybe stupid    Post subject: Windows Failed Reply to topic Reply with quote



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
View users profile Send private message Add User to Ignore List AIM Address
Kameloh
Novice


Age:38
Gender:Gender:Male
Joined: Jul 07 2003
Posts: 37
Offline

PostPosted: Sat Jul 30, 2005 12:19 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Muskrat
Server Help Squatter


Age:38
Joined: Aug 24 2004
Posts: 829
Location: Swamp
Offline

PostPosted: Sat Jul 30, 2005 12:37 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

Kameloh wrote:
Goto properties and it should show "opens with...".

Is that so?
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Cerium
Server Help Squatter


Age:43
Gender:Gender:Male
Joined: Mar 05 2005
Posts: 807
Location: I will stab you.
Offline

PostPosted: Sat Jul 30, 2005 12:48 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sat Jul 30, 2005 1:02 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

The properties doesn't show open with...


But Cerium's soltion seems to solve the edit issue
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sat Jul 30, 2005 1:20 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address
Muskrat
Server Help Squatter


Age:38
Joined: Aug 24 2004
Posts: 829
Location: Swamp
Offline

PostPosted: Sat Jul 30, 2005 1:51 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

hehe, Bak you are a master sleuth.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:42
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Sat Jul 30, 2005 2:23 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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\""
Back to top
View users profile Send private message Add User to Ignore List Send email
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sat Jul 30, 2005 2:32 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:36
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2019
Offline

PostPosted: Sat Jul 30, 2005 2:47 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Sat Jul 30, 2005 3:10 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email AIM Address
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:42
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Sat Jul 30, 2005 10:27 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sat Jul 30, 2005 2:39 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Maverick
broken record


Age:41
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Sat Jul 30, 2005 2:59 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Yup me too, Textpad is cool - not to mention "free"
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sat Jul 30, 2005 3:11 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Maverick
broken record


Age:41
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Sat Jul 30, 2005 3:13 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

www.disney.com does the trick most of the time, Dr Brain sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Cerium
Server Help Squatter


Age:43
Gender:Gender:Male
Joined: Mar 05 2005
Posts: 807
Location: I will stab you.
Offline

PostPosted: Sat Jul 30, 2005 4:35 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 26 page(s) served in previous 5 minutes.

phpBB Created this page in 0.698884 seconds : 42 queries executed (84.0%): GZIP compression disabled