Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing default program association in a bat file
Message
From
09/07/2007 10:16:24
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
General information
Forum:
Windows
Category:
Other
Miscellaneous
Thread ID:
01238598
Message ID:
01238607
Views:
10
>>>>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/
Previous
Reply
Map
View

Click here to load this message in the networking platform