[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Windows 7 Users Start Menu shortcut

Posted on 2013-05-17
8
Medium Priority
?
678 Views
Last Modified: 2013-09-12
How we can add program shortcut to "Windows 7 Users Start Menu shortcut" ?

previously in windows xp for domain users we are using user domain logon script to copy shortcuts

rem  ::: copy shortcut to Windows xp Users Start Menu using batch script :::

copy "\\testserver\user_shortcuts\*.*"  "%USERPROFILE%\Start Menu\"  /y


now this is not working with windows 7 pc for domain users of windows 2003.


Kindly suggest.
0
Comment
Question by:mash1978
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 20

Expert Comment

by:n2fc
ID: 39176649
For windows 7 change

%USERPROFILE%\Start Menu\

to

%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu
0
 
LVL 71

Assisted Solution

by:Qlemo
Qlemo earned 900 total points
ID: 39177394
Better to use %APPDATA% ("%AppData%\Microsoft\Windows\Start Menu\"), but that requires to check for the OS. One way to do that is:
if "%LocalAppData%" == "" (set base=%UserProfile\Start Menu) else (set base=%AppData%\Microsoft\Start Menu)
copy "\\testserver\user_shortcuts\*.*"  "%base%\"  /y

Open in new window

0
 
LVL 20

Expert Comment

by:n2fc
ID: 39177402
Qlemo forgot "Windows" in code sample path...


Should be:
if "%LocalAppData%" == "" (set base=%UserProfile\Start Menu) else (set base=%AppData%\Microsoft\Windows\Start Menu)

Open in new window

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 71

Expert Comment

by:Qlemo
ID: 39177415
Oops.
0
 
LVL 20

Expert Comment

by:n2fc
ID: 39177420
No problem :-)
0
 

Accepted Solution

by:
mash1978 earned 0 total points
ID: 39178569
Hi,

it giving me below error message:

Access is denied.

-----------------------------------------

C:\>STartmenu_copy.bat

C:\>if "C:\Users\MK\AppData\Local" == "" (set base=AppData\Microsoft\Windows\Sta
rt Menu )

C:\>copy "c:\user_shortcuts\*.*"  "\"  /y
c:\user_shortcuts\Microsoft Office Word 2007.lnk
Access is denied.
c:\user_shortcuts\TEST_SHORTCUTS.txt
Access is denied.
        0 file(s) copied.
C:\>
---------------------------------------------------------------

if used command prompt with run as administrator then result is :

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>cd\

C:\>STartmenu_copy.bat

C:\>if "C:\Users\MK\AppData\Local" == "" (set base=AppData\Microsoft\Windows\Sta
rt Menu )

C:\>copy "c:\user_shortcuts\*.*"  "\"  /y
c:\user_shortcuts\Microsoft Office Word 2007.lnk
c:\user_shortcuts\TEST_SHORTCUTS.txt
        2 file(s) copied.
C:\>
--------------------------------------------------------------------------

but not showing shortcuts to users start menu

even searched c:\user folder but files not found
0
 
LVL 71

Assisted Solution

by:Qlemo
Qlemo earned 900 total points
ID: 39178596
There was a percent sign missing (typo), and so %base% was not set. If you look at the echoed copy command, you'll see it is trying to copy it to "\" - the root folder of the current drive.
if "%LocalAppData%" == "" (set base=%UserProfile%\Start Menu) else (set base=%AppData%\Microsoft\Windows\Start Menu)
copy "\\testserver\user_shortcuts\*.*"  "%base%\"  /y

Open in new window

0
 

Author Closing Comment

by:mash1978
ID: 39486145
We can add script in user login script.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question