【发布时间】:2013-06-27 16:20:16
【问题描述】:
我知道永久删除徽标的两种方法。 “官方”:
cscript //Nologo //S
将为当前用户保存当前命令行选项。
具有管理员权限的ftype 方法:
ftype wsffile="%SystemRoot%\System32\CScript.exe" //nologo "%%1" %%*
ftype jsfile="%SystemRoot%\System32\CScript.exe" //nologo "%%1" %%*
ftype vbsfile="%SystemRoot%\System32\CScript.exe" //nologo "%%1" %%*
只有在批处理文件中使用这些行时才需要双-%。
后者将通过影响注册键HKEY_CLASSES_ROOT\<file>\Shell\Open\Command的所有用户,其中<file>可以是wsffile、jsfile或vbsfile。
您知道cscript //Nologo //S 设置存储在哪里吗?
【问题讨论】:
-
+1 是我找到的第一个指向
/nologo /s以保存选项的位置(由于在使用/?列出的选项中完全缺少它)
标签: vbscript wsh windows-scripting windows-console