File Coping to other location and overwrite

Hi, I know we can copy file from one location to other via Bigfix, but want to know if we can overwrite already existing file and exclude some of them?

do i need to look over windows command or something from bigfix side?

Not with a single BigFix action script command - you need to delete then move/create.
The available action script commands are documented here

Oh , that means every time i have to delete 5-6GB of data and then recopy again? No exclude or overwrite?

So you want to not copy the file if it already exists in the target? Or overwrite existing files?

The copy/move commands in ActionScript are not plurals. So if you want to build the logic in Action Script natively, you’d have to know the file names ahead of time and handle them in script like
if {not exists file “c:\target\file\path\myfile1.txt”}
copy myfile1.txt c:\target\file\path\myfile1.txt
endif
if {not exists file “c:\target\file\path\myfile2.txt”}
copy myfile2.txt c:\target\file\path\myfile2.txt
endif

Otherwise, you’d need to use OS commands. Something like
waithidden robocopy /e __downloads c:\target\file\path
or
waithidden xcopy /D __downloads\* c:\target\file\path\

Wondering what the actions are prior to the robo or xcopy steps as I am attempting to copy the contents of a folder to a folder on workstations and I am having issues with the files copying.

I used the software distribution wizard to create a sha and use that action to download the file, it prefetches and extracts via the action commands and the I tried to add the waithidden but I it just wont copy anything.

Im new to BF and any help would be greatly appreciated.

prefetch 07b8c58f4407f0ed1af1de66b9664592d8953fcc sha1:07b8c58f4407f0ed1af1de66b9664592d8953fcc size:1026212 http://myurl/Test.tmp sha256:42b3f39c1fe09d80aa991ce084b48dd65ee4776ec7e38619cb3050e258fa30c6
extract 07b8c58f4407f0ed1af1de66b9664592d8953fcc

waithidden robocopy /e __downloads C:\targe\file\path

Any help would be greatly appreciated

I get a completed status with exit code 16

I don’t believe that it is copying the files at all since I don’t seem to see any temp files and or items in the path I set

prefetch 07b8c58f4407f0ed1af1de66b9664592d8953fcc sha1:07b8c58f4407f0ed1af1de66b9664592d8953fcc size:1026212 http://myurl/Test.tmp sha256:42b3f39c1fe09d80aa991ce084b48dd65ee4776ec7e38619cb3050e258fa30c6
folder create "C:\targe\file\path"
extract 07b8c58f4407f0ed1af1de66b9664592d8953fcc "C:\targe\file\path"