使用批处理替换系统上找到的所有 autocad 快捷方式?
我需要使用批处理将计算机上找到的每个图标 (AutoCAD 2010.LNK) 替换为另一个 .LNK。
众所周知,图标\快捷方式可以在任何地方找到,并且用户可以随意多次找到。
我怎样才能实现这个目标?
I need to replace every icon (AutoCAD 2010.LNK) found on the computer with another .LNK using batch.
The icon\ shortcut as we well know can be found anywhere and as many times as the user likes.
How can I achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,阅读
HELP FOR
,然后
从不同位置在命令行实验中尝试并仔细测试,
然后创建一个包含以下内容的bat文件。请注意将 %a 更改为 %%a 并删除了“echo”
first, read
HELP FOR
and then try this in a command line
experiment with from various locations and test carefully
then create a bat file with the following contents. Note the change of %a into %%a and the removal of the 'echo'
一些注意事项:
您的替换快捷方式文件必须以不同的名称命名(例如,
AutoCAD 2010.LNK.new
)。在 Windows Vista/7 中,您可能会被禁止覆盖某些文件夹中的文件,除非您以提升的权限运行脚本。
A couple of notes:
Your replacement shortcut file must be named differently (like
AutoCAD 2010.LNK.new
, for example).In Windows Vista/7 you will probably be prohibited from overwriting files in certain folders unless you are running the script with elevated rights.