Click here to Skip to main content
13,052,956 members (61,983 online)
Rate this:
Please Sign up or sign in to vote.
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"
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

1 solution

Rate this: bad
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:


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 Users
CD AppData
CD Roaming
CD Microsoft
CD Windows
CD Start Menu
Cd Programs
Cd My Program
CD Users
CD Desktop

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 19 Jan 2013
Copyright © CodeProject, 1999-2017
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