![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread
Number : 5426 Date : 2003-08-29 Author : Virg Subject : Re: .bat execution revisited Size(KB) : 3
Many thanks to both Garry and Michael. I'll try those things the first chance I get. Virg ----- Original Message ----- From: "Michael Marquart" To: Sent: Thursday, August 28, 2003 10:02 PM Subject: Re: [xxcopy] .bat execution revisited > > Perhaps the association is screwed, try these two in succession. > > assoc .bat=batfile > ftype batfile="%1" %* > > > I don't understand why ftype doesn't include an executable in the mix > (cmd.exe/command.com) for batch files... > > > > > On Thu, 28 Aug 2003 19:29:25 -0700, Virg wrote: > > > I'm top posting because I imagine few will be interested in this off topic > > subject from a week ago. > > > > Today I had the opportunity to try Gary's suggestion below of typing "ftype > > batfile="%1" %*" in a command line. First I typed only "ftype batfile" and > > received the response "%1" %*" with the quote marks. The same one received > > when querying for cmdfile. > > > > Just for fun I typed the whole command: ftype batfile="%1" %* and received > > the same response. However, right clicking on a .bat file gives neither an > > edit or an open choice now and nothing happens when I double click on one. > > > > If I go to a "dos" box and type pikback.bat the batchfile with that name > > executes. > > > > It isn't super important since the cmd files are still normal. I didn't > > mess with those before. But it looks like I've screwed up .bat files for > > good on his XP computer. > > > > Virg > > > > ----- Original Message ----- > > From: "garrydeane" > > To: > > Sent: Wednesday, August 20, 2003 8:45 PM > > Subject: [xxcopy] Re: .bat execution > > > > > >> --- In xxcopy@yahoogroups.com, "Virg" wrote: > >>> I previously said I screwed up my ability to execute .bat > >>> files in Win XP Pro. > >>> > >>> I wanted to use editpad lite instead of notepad for editing > >>> .bat files. I changed the .bat type to open with editpad. > >>> Now those files merely open instead of run. I should have > >>> used edit instead of open but the deed is done. > >>> > >>> Does anyone know what I need to set for that file type to > >>> get back to the default action of "run" instead of opening > >>> in editpad? Thankfully I didn't do that to the .cmd type > >>> so I should still be able to run those but I've only tried > >>> the xxcopy files I mentioned a little earlier. I'd like > >>> to put his computer back the way it was but don't have > >>> goback installed and no restore checkpoints. > >>> > >>> Sorry this is off topic but it's "sort of" related. > >> > >> Open a Cmd Prompt window and type "ftype cmdfile" (no quotes). > >> You will probably see: > >> > >> C:\>ftype cmdfile > >> cmdfile="%1" %* > >> > >> This is the same entry required for batfile (.bat). Type > >> > >> ftype batfile="%1" %* > >> > >> and you're done. If you prefer, you can do the same thing via > >> Explorer->Tools->Folder Options->File Types->MS-DOS Batch File-> > >> Edit->Open->Edit (or something similar in XP). > >> > >> Garry > > > --------------------------------------------------------------- > To unsubscribe eMail to: > Or to post a message, send eMail to > --------------------------------------------------------------- > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > >
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.