Click here to Skip to main content
15,906,624 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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....
Posted

1 solution

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.

CSS
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



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
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900