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
171 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 69

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 54

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
The viewer will learn how to count occurrences of each item in an array.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

828 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