Scripting Question

KACE 1000 script to first copy all files in a folder then delete those files

01/15/2016 2905 views
Looking for step by step instruction on setting up a KACE 1000 script that does the following :

- copy all files from c:\programdata\polaris\5.0\offlinetransaction\ to n:\helpdesk\polarisoflinefiles_backup\
- after fie copy is complete then delete all files in the folder c:\programdata\polaris\5.0\offlinetransaction\

thank you very much for any help
Answer Summary:
1 Comment   [ + ] Show comment


Answer Chosen by the Author

I would create an offline kscript using a .bat file that looks like:

@echo off 

copy "c:\programdata\polaris\5.0\offlinetransaction" "n:\helpdesk\polarisoflinefiles_backup"

timeout /t 5 /nobreak

del /q /f "c:\programdata\polaris\5.0\offlinetransaction"


Select your computers/labels to target
Set you schedule options
Upload the .bat as a dependency
Task 1: 
1. Verify a directory exists : $(KACE_DEPENDENCY_DIR)
On Success
1. Run the batch file (enter name and then the commands)
2. Log Message "Success" to "Status"

Answered 01/15/2016 by: rockhead44
Red Belt

  • thank you very much rockhead44

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ