Move files from Multiple directories to a Single directory
Log In or Register to download the BES file, and more.

0 Votes

Description

This task help move files (.txt, .zip, .gz, .dll, etc) from Multiple directories to a Single directory. Fetches all the files containing ".zip" extension from Sha1 folder of Root server directory and concatenating the output in bat file. Then move them to a single folder.

Property Details

ID27008
StatusBeta - Preliminary testing ready for more
TitleMove files from Multiple directories to a Single directory
SourceInternal
Source Release Date8/31/2023 12:00:00 AM
KeywordsMove files from Multiple directories to a Single directory, Concatenation, Loop in Action script, Move file to single folder
Is TaskTrue
Added by on 8/31/2023 4:03:09 AM
Last Modified by on 8/31/2023 5:16:59 AM
Counters 150 Views / 1 Download
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 94 fixlets and 96 analyses   * Results in a true/false
Show indented relevance
true

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
delete __appendfile
delete movefiles.bat
appendfile move "{concatenation "%22 E:\Upload_Files\%0d%0amove %22" of ((pathname of it) of files whose (name of it contains ".zip") of descendant folders of folder "E:\Program Files (x86)\BigFix Enterprise\BES Server\UploadManagerData\BufferDir\sha1\")}{"%22"} "E:\Upload_Files\"

copy __appendfile movefiles.bat
waithidden cmd.exe /c movefiles.bat
delete __appendfile
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!