Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

704 Posts in 214 Topics- by 630 Members - Latest Member: BYODre

May 18, 2012, 10:10:00 PM
RES Software User Group ForumProductsAutomation ManagerHow to perform a copy of just 1 file
Pages: [1]
Print
Author Topic: How to perform a copy of just 1 file  (Read 549 times)
jstival
Newbie
*
Posts: 1


« on: May 05, 2011, 06:52:26 PM »

Simply how to copy just 1 file with Automation Manager.

Because, it's very simple to copy Folders, but i don't understand how to just copy 1 file from \\sourceSvr to c:\...

Thanks

Sorry for this newbie question.
Logged
Joost
Newbie
*
Posts: 5


« Reply #1 on: May 12, 2011, 09:32:33 AM »

This shouldn't be that difficult.

Just add a new task "Perform Files Operation";
Action type "Copy - File/Folder";

At the source path enter the complete path for the single file (\\sourceSvr\<anyfolder>\<File>)
At the destination path enter the complete path where you want to place the file (c:\<anyfolder>\<File>)

Logged
perkopp
Newbie
*
Posts: 2



« Reply #2 on: February 20, 2012, 11:48:12 AM »

I have an additional question:
How do I copy the file to the %appdata% dir for the logged on user (or all users) on the client?

When I use
Code:
%appdata%\foldername

as the destination, AM sets the destination to
Code:
C:\Windows\system32\config\systemprofile\AppData\Roaming\foldername

I also tried using
Code:
C:\Users\*\Appdata\Roaming
This returns the error:
Code:
The filename, directory name, or volume label syntax is incorrect

Can I create a parameter somehow, to use for this operation?
Logged

---
Per Kopperdal
Iain Brighton
RES Certified Trainers
Newbie
**
Posts: 35


« Reply #3 on: February 20, 2012, 01:18:20 PM »

Hi Per,

As RES AM runs under the Local System account, the %APPDATA% variable is resolved under the system context. To target a particular user you will need to know the user's sAMAccountName (logon name) which can be passed into a module as a parameter.

I take it you're not using RES Workspace Manager (WM) as you could achieve this without AM? If you were you could integrate WM with AM. This combination will allow you to pass the user's logon name as a parameter when invoking the Module from WM.

The only other way I think you could achieve this is to copy the file locally to a temporary location and then script the copying into all locally cached profiles (look at the 'Execute Command' tasklet and the 'Script' tab!).

Thanks, Iain
Logged
Pages: [1]
Print
Jump to: