Need a variable to access the ALLUSERSPROFILE
I have a second script that needs to verify the extraction of a zip file of another script. However the verify fails using $(KACE_DEPENDENCY_DIR) because it references the current script path.
So I need to have this script find a directory that exists in the path of another script... but for XP and Win7. If it were just one arch, no problem, just put the explicit path.
Any 'pointers' would be appreciated! (pun intended)
Are you doing this directory verify from the Kace scripting page? If so, Kace doesn't know what %AllUsersProfile% variable is. Try this instead: $(KACE_INSTALL)\kbots_cache\packages\kbots\735\WorkflowManager
If you do want to use %AllUsersProfile%, use a batch script. IF EXIST %AllUsersProfile%\Dell\KACE\kbots_cache\packages\kbots\735\WorkflowManager yourcommands or IF NOT EXIST.