通过浴室文件中的vb代码或命令行在文件夹选项中添加新文件类型 [英] Adding a new file type in folder options through vb code or command lines in bathc files
本文介绍了通过浴室文件中的vb代码或命令行在文件夹选项中添加新文件类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我需要自动执行以下过程代码(vb console app。或者使用bat文件中的命令)
MyComputer - >工具 - >文件夹选项 - >文件类型标签 - >新的
我需要通过代码添加新的文件类型GZ(不是手动过程)。
我才知道我们可以通过改变注册表来做到这一点。但是不知道怎么做进程
请帮忙。
谢谢。
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.
推荐答案
参见本白皮书 [ ^ ]。您还需要检查您要添加的类型是否尚未使用;在我的系统 .gz
已经注册。
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.
我们可以通过使用REG命令来实现这一点。
REG添加HKEY_CLASSES_ROOT\.gz/ ve / d ft000005
找到正确的Dword数据非常重要。
We can accomplish this by using REG commands.
REG ADD "HKEY_CLASSES_ROOT\.gz" /ve /d ft000005
finding the correct Dword data is important.
这篇关于通过浴室文件中的vb代码或命令行在文件夹选项中添加新文件类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文