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
170 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

777 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