Cant get dependencies to work with Scripts
Hi
New to KACE but I have read several articles here but cant seem to get this to work. I am copying 2 dependencies which is working as I can see the files on the local machine. Next I want to run xcopy to copy one of the files to a folder on the root of the drive so it can be accessed later. Next I want to create a scheduled task which looks at the second dependency (XML) for the settings none of the call programs are working. Referencing this KACE Product Support : Script to copy a file from Dependencies to local host (itninja.com) I came up with these. The dependencies and commands work locally OK so I am sure its just the way I am calling them.
Launch “$(KACE_SYS_DIR)\xcopy.exe” with params “$(KACE_DEPENDENCY_DIR)\Delete_files_Directories.bat C:\KACE\ /y”
and
Launch “$(KACE_SYS_DIR)\schtasks.exe” with params “$(KACE_DEPENDENCY_DIR)/CREATE /XML ”Delete_files.xml“ /TN ”Delete Files“”
Clearly I am doing something daft but can someone shine a light on what it is please?
Answers (4)
Pretty sure I tried SysWOW64 on my journey, I will try again to double check though. KACE support were involved as well and they didn't advise this although I do remember seeing it around here somewhere. KScript would be a much nicer way to join lots of parts together but I can work with Shell Script.