/build/static/layout/Breadcrumb_cap_w.png

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

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

1 Comment   [ + ] Show comment
  • Try the move command - flip1001 8 years ago

Answers (1)

Answer Summary:
Posted by: rockhead44 8 years ago
Red Belt
0

Top Answer

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"


exit
=================


Select your computers/labels to target
Set you schedule options
Upload the .bat as a dependency
Task 1: 
Verify
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"
SAVE



Comments:
  • thank you very much rockhead44 - jhaste 8 years ago

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:

Share

 
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