Unable to run simple batch file in KACE script
Hello,
I'm having some issues running a simple batch file in the KACE scripting. I'm fairly new to KACE and still learning to use this software. Below is a screenshot of the batch file I'm trying to run. It shows as running successfully in the logs, but nothing actually deletes. When I look at the log I get the following message:
Running as: Administrator
Error creating process: C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\131\kace7499.bat : (2) The system cannot find the file specified.
Error Code: 2
Status Code: 0
Any ideas why this would be? Thanks!
Answers (2)
need different command
like already state name the script text.bat
and use this command
if exist c:\test rd c:\test /q /s
Comments:
-
del is for files - SMal.tmcc 5 years ago
Try removing the quotes around your pathway. Also being that this is a Unix system you might want to try rm c:\test - nshah 10 years ago
the best thing to do is "launch a program" and use cmd.exe for the program with del ... as the parameters - SMal.tmcc 10 years ago