Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
180 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 71

Accepted Solution

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

Open in new window

0
 
LVL 57

Assisted Solution

by:McKnife
McKnife earned 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Let's recap what we learned from yesterday's Skyport Systems webinar.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

963 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