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
- 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:
Please log in to answer
Posted by:
rockhead44
8 years ago
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