Click here to Skip to main content
13,139,132 members (77,061 online)
Rate this:
Please Sign up or sign in to vote.
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.

Posted 27-Nov-12 20:10pm
Updated 27-Nov-12 20:12pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

We can accomplish this by using REG commands.

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

finding the correct Dword data is important.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100