Click here to Skip to main content
11,706,979 members (46,573 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: batch
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 19-Jan-13 0:00am
Amol011783

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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


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
  Permalink  
v2

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 165
1 OriginalGriff 125
2 chainerlt 110
3 ppolymorphe 89
4 Mika Wendelius 70
0 OriginalGriff 9,178
1 Sergey Alexandrovich Kryukov 8,512
2 CPallini 5,189
3 Maciej Los 4,766
4 Mika Wendelius 3,696


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 19 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100