Solved

Syntax to create a batch file- to copy a shortcut from a SHARE to Windows 7 programs folder

Posted on 2014-11-20
3
167 Views
Last Modified: 2014-12-21
Hi
I have a shortcut called “science molecules” located on a network share called “SHOTRCUTS”
Please post me batch file syntax to copy the “science molecules” shortcut from the share to the following location in windows 7. (The shortcut must be copied within the science folder)
C$\ProgramData\Microsoft\Windows\Start Menu\Programs\Science

I will copy this batch file to a startup script in a GPO (Computer configuration-policies- windows settings-Scripts-startup)

Or please suggest me if there is a better way of doing this.

Thanks
0
Comment
Question by:lianne143
3 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 250 total points
ID: 40456462
xcopy "\\server\ShortCuts\science molecules.lnk" "%AllUsersProfile%\Microsoft\Windows\Start Menu\Programs}Science\"

Open in new window

0
 
LVL 53

Assisted Solution

by:McKnife
McKnife earned 250 total points
ID: 40456464
Standard way is using a group policy preference file item. http://technet.microsoft.com/en-us/library/cc772536.aspx describes it.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now