Copy File From->To
Log In or Register to download the BES file, and more.

0 Votes

Description

This is a very basic task to show how to copy a file from location A to location B.

Although i'm using absolute paths, which restricts me to windows boxes... the action script used works on any OS assuming you use the proper pathing methodology.


Property Details

ID2605
TitleCopy File From->To
DomainBESC
Sourcedanielheth@bigfix.me
Source Release Date9/13/2013 12:00:00 AM
Added by on 9/13/2013 10:07:17 AM
Last Modified by on 9/13/2013 10:07:17 AM
Counters 12703 Views / 86 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 2 ratings. ** Log In or Register to add your rating.

Relevance

Used in 13 fixlets and 3 analyses   * Results in a true/false
Show indented relevance
name of operating system contains "Win"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists file "c:\users\daniel\test.txt"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
//copy from profile directory to my desktop
copy "c:\users\daniel\test.txt" "c:\users\daniel\desktop\test.txt"
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
Also, if you do not have the relevance that sinucus suggests, then this could fail if the file that you are copying to already exists. Also, the relevance will not go to false without it, which will report as failed if it is a fixlet and not a task.
sinucus -
might want to also include a " not exists file "c:\users\daniel\desktop\test.txt" " in the relevance. This will ensure that the fixlet/task cannot be run twice.