在Batch File中重命名开始菜单快捷方式和桌面快捷方式 [英] Rename start menu shortcut and Desktop shortcut in Batch File
问题描述
我是BATCH FILE创建新手,我一度陷入困境....我想重命名我的软件安装快捷方式。安装完成后,我在开始菜单快捷方式的快捷方式中说abc1.0.lnk toabc1.1.lnk....此外,我想将桌面快捷方式从abc1.0.lnk重命名为abc1.1.lnk....我用Google搜索但是尝试了自己,但没有成功....
我检查了我的C:\Document and Settings \ username \ abc.lnk,但在上面的指定链接中看不到桌面上的快捷方式...这是问题还是
我试过用
ren abc1.0.lnk abc1.1.lnk
也试了
renabc1.0.lnkabc1.1.lnk
和
ren abc1.0 abc1.1
所有这些都给了我语法命令错误....
如果您有任何想法重命名快捷方式,请建议。 ...
I am new to "BATCH FILE" creation and i am stuck at one point.... I want to rename my software installed shortcut.After installation i have my shortcut at the Start menu shortcut say "abc1.0.lnk" to "abc1.1.lnk".... Also the I want to rename desktop shortcut from "abc1.0.lnk" to "abc1.1.lnk"....I googled but tried myself but not having success....
I checked my "C:\Document and Settings\username\abc.lnk" but the shortcut that looks in desktop is not seen in the specified link above...Is this the problem and also
I tried using
ren abc1.0.lnk abc1.1.lnk
also tried
ren "abc1.0.lnk" "abc1.1.lnk"
And
ren abc1.0 abc1.1
All this were giving me the Syntax command error....
Please suggest if u have any idea to rename the shortcut....
推荐答案
在Windows 7上,可以在以下位置找到开始菜单中的用户文件夹:
C:\ Users \ USER_NAME \ AppData \Roaming\Microsoft \ Windows \开始菜单
了解更多:存储开始菜单的位置?
在Windows 7上,桌面图标位于:
C:\ Users \ USER_NAME \\ \\Desktop
因此,如果我们在这些位置更改文件名,那么它会自动反映到开始菜单和桌面上
,这是BATCH代码。
On Windows 7, user folders within the start menu can be found at:
C:\Users\USER_NAME\AppData\Roaming\Microsoft\Windows\Start Menu
Read more: Where is the Start Menu Stored?
On Windows 7, Desktop Icons can be found at:
C:\Users\USER_NAME\Desktop
So if we change file name in those location then it will automatically reflect into start menu and desktop
and here is the BATCH code.
CD\
C:
CD Users
CD USER_NAME
CD AppData
CD Roaming
CD Microsoft
CD Windows
CD Start Menu
Cd Programs
Cd My Program
Rename ad.ink ad1.ink
CD\
C:
CD Users
CD USER_NAME
CD Desktop
Rename ad.ink ad1.ink
你必须用登录的用户名替换USER_NAME
希望这有帮助,如果是,然后接受答案并投票,否则将回复您的疑问
--Rahul Dhoble
You have to replace "USER_NAME" with logged in Users name
Hope this helps if yes then accept the answer and vote it else revert back with your queries
--Rahul Dhoble
这篇关于在Batch File中重命名开始菜单快捷方式和桌面快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!