Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I need to do the following process automatically thorugh code(vb console app. or with commands in bat files)

MyComputer -> Tools -> Folder options -> File Types tab -> New

I need to add a new file type "GZ" through code(not manual process).
I came to know that we can do this by altering registry. But dont know how to do it progrmatically

Kindly help with this.


Thanks.
Posted
Updated 27-Nov-12 20:12pm
v2

See this white paper[^]. You also need to check that the type you want to add is not already in use; on my system .gz is already registered.
 
Share this answer
 
We can accomplish this by using REG commands.

REG ADD "HKEY_CLASSES_ROOT\.gz" /ve /d ft000005

finding the correct Dword data is important.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900