Copy Force Overwrite?

(imported topic written by ken@gracenote91)

BigFix Action Script “Copy” command… does it have an “overwrite” switch ?

I dont see one in the manual.

My fixlet contains:

copy "\\Gnfile1\public_install\CertFix\certutil.exe" "C:\Windows\system32\certutil.exe"

It fails when run on a pc that already has that file.

I tried running that from the command prompt and found that it gave me the prompt:

Overwrite C:\Windows\system32\certutil.exe? (Yes/No/All):

I then added the switch /Y and ran it at the command prompt and it worked fine.

But when I modified my action script with the /Y , it still failed :

Failed copy “\Gnfile1\public_install\CertFix\certutil.exe” “C:\Windows\system32\certutil.exe” /Y

(imported comment written by SystemAdmin)

Run a delete command first if you think there is already a file by the same name living at the target.

(imported comment written by cstoneba)

or, use the command “waithidden cmd.exe /c copy “\Gnfile1\public_install\CertFix\certutil.exe” “C:\Windows\system32\certutil.exe” /y”