Click here to Skip to main content
Sign Up to vote bad
good
See more: WindowsVB.NETbatch
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 27 Nov '12 - 20:10
Edited 27 Nov '12 - 20:12


2 solutions

We can accomplish this by using REG commands.
 
REG ADD "HKEY_CLASSES_ROOT\.gz" /ve /d ft000005
 
finding the correct Dword data is important.
  Permalink  
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.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 228
1 Ron Beyer 220
2 Mahesh Bailwal 215
3 Rohan Leuva 210
4 Sergey Alexandrovich Kryukov 162
0 Sergey Alexandrovich Kryukov 8,548
1 OriginalGriff 6,819
2 CPallini 3,648
3 Rohan Leuva 2,933
4 Maciej Los 2,288


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid