Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing default program association in a bat file
Message
De
09/07/2007 10:16:24
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
Information générale
Forum:
Windows
Catégorie:
Autre
Divers
Thread ID:
01238598
Message ID:
01238607
Vues:
9
>>>>I created an application that can create, save, and open custom files of the extension .env.
>>>>
>>>>I can set the default program that opens when I open the file in Windows Explorer through the Windows GUI, but I would like to create a .bat file that does this for me. Does anybody know how to do this?
>>>>
>>>>Edit: Sorry about the title... somehow the second half got cut off.
>>>
>>>Check Re: Associate my program with file extension in Windows Expl Thread #1182620 Message #1182630 (the second link).
>>
>>Thanks Naomi... worked perfectly.
>>
>>Here is my batch file:
>>
>>assoc .env=PrintList
>>ftype PrintList=C:\temp\app.exe %1
>>
>>
>>The only problem is, it doesn't seem to associate the correct icon with the .env file now. Oh well, at least it is working!
>
>You're welcome. I'm not sure about the icon problem.

It might solve itself when the user reboots. No biggie.
Very fitting: http://xkcd.com/386/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform