Click here to Skip to main content
12,068,520 members (66,551 online)
Rate this:
 
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 1:00am
Amol011807

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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web03 | 2.8.160208.1 | Last Updated 19 Jan 2013
Copyright © CodeProject, 1999-2016
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