Skip navigation
Currently Being Moderated

How to copy files to a specific directory on client machines

VERSION 1 
Created on: Nov 15, 2007 9:26 AM by LDSupport - Last Modified:  Nov 15, 2007 9:31 AM by LDSupport

 

Description

 

 

Copy file to workstation

 

Batch file fails to copy file

 

Update file on workstation

 

Simple batch file doesn't copy file

 

Error: Access Denied copying file

 

 

 

Resolution

 

 

These are two possible solutions using batch files with a Software Distribution task.

 

A. Create a batch file distribution package that has the files to be copied as additional files listed in the pacakge.

 

1. Create a batch file distribution package in the LDMS Console.

 

2. Copy the files to be copied to the same directory that the batch file is stored in.

 

3. Add the files to be copied as additional files in the properties of the distribution pacakge.

 

4. In script, set the batch file to copy the files from the sdmcache directory to the destination directory.

 

The syntax to use in the batch file would be:

 

xcopy file.exe "c:\program files\my program\file.exe"

 

Since the files to be copied will be downloaded to the same directory as the batch file in the SDMCACHE folder, a path to the files is not necessary.

 

NOTE: This is the preferred option for using a batch file to copy files.

 

 

 

B. Use a batch file distribution package, have the batch file copy the files from a network location to the destination directory.

 

The syntax to use in the batch file would be:

 

xcopy \network share\file.exe "c:\program files\my program\file.exe"

 

This option can be problematic. It might be necessary to map a drive to the share in the script. Also, since LANDesk is using the Local System account to run the batch file the Active Directory group "Domain Computers" must be listed in the share permissions.

 

 

Comments (1)
LANDESK Community powered by Jive SBS® 4.5.7.1  |  Legal Notices  |  Privacy Policy  |  Icon 

TweeterOn Twitter  |  Icon FacebookOn Facebook © 2007 LANDESK Software