/build/static/layout/Breadcrumb_cap_w.png

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)


0 Comments   [ + ] Show comments

Answers (3)

Posted by: worzie 11 years ago
Fourth Degree Brown Belt
2

Looks like $(KACE_DATA_DIR) is the ticket!


Thanks for the lead SDNBTP!

Posted by: areiner 11 years ago
4th Degree Black Belt
1

%AllUsersProfile%


Comments:
  • As in "Verify that the directory “%AllUsersProfile%\Dell\KACE\kbots_cache\packages\kbots\735\WorkflowManager†exists."? - worzie 11 years ago
  • minus the screwed up quotations that got garbled - worzie 11 years ago
  • Directory does not exist: %AllUsersProfile%\Dell\KACE\kbots_cache\packages\kbots\735\WorkflowManager

    but it does - worzie 11 years ago
Posted by: SDNBTP 11 years ago
Third Degree Blue Belt
1

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.


Comments:
  • Wish that was it. That equals: C:\Program Files\Dell\KACE\\kbots_cache\packages\kbots\735\WorkflowManager - worzie 11 years ago
  • I know it says it too:
    Installation directory for executables, scripts, packages, etc.
    All are synonymous. Preferred: $(KACE_INSTALL)
    5.2+ Win7/Vista C:\ProgramData\Dell\KACE
    5.2+ XP C:\Documents and Settings\All Users\Dell\KACE
    5.2+ Mac OS X /Library/Application Support/Dell/KACE/bin
    5.2+ Linux /opt/dell/kace
    5.1 Windows c:\Program Files\KACE\KBOX

    However it looked in Program Files :-/ - worzie 11 years ago
  • What version is your kbox? For Windows these two variables are supposidly the same.

    $(KACE_INSTALL)
    5.2+ Win7/Vista C:\ProgramData\Dell\KACE
    5.2+ XP C:\Documents and Settings\All Users\Dell\KACE
    5.1 Windows c:\Program Files\KACE\KBOX

    $(KACE_DATA_DIR)
    5.2+ Win7/Vista C:\ProgramData\Dell\KACE
    5.2+ XP C:\Documents and Settings\All Users\Dell\KACE
    5.1 $(KACE_INSTALL) - SDNBTP 11 years ago
    • Cough... still a bit behind: 5.3.53053 - worzie 11 years ago
      • So I presume I'll have to fix my scripts after upgrading. Argh! - worzie 11 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