Knowledge Base

Welcome to The Carlisle Group's Knowledge Base.

Search or Ask a Question

This is a keyword search that looks for matching articles that contain one or more words specifically by a user in articles’ tags, title and content. Admin writes brief intro content here via admin end. If you are unable to find an answer to your issue, please submit an issue here.

Back to Articles List

How-To Force CAS to Create User Defined Temporary Directories | CAS

Added: 05/09/2012; Last Modified: 06/12/2012; Visits:10,439

CAS will not automatically generate the user defined temporary directory when the TempDir flag is set.  This poses issues when the temporary directory is not always guaranteed to be there.  For example, in many environments "c:\temp" gets recreated on reboot and any subfolders will be deleted.  We intentionally made the decision not to automatically empty/create the user defined temporary directory.  This was done, assuming that a common temporary is defined, so CAS does not delete any files or folders that other applications have created.  Starting with CAS version 5.0.175 there is a new startup parameter called ForceCreateTempDir.  When set to 1, CAS will delete and create the temporary directory on application launch.

 

Setting the ForceCreateTempDir flag in a CAS shortcut:

  1. Find you CAS shortcut. Usually in the Start Menu-All Programs-Carlisle Group-CAS 5. (CAS5-64)


     
  2. Right-click on the shortcut and select "Properties."


     
  3. Add the  ForceCreateTempDir parameter to the end of the shortcut and set it to equal 1.  ForceCreateTempDir=1

 

Setting the ForceCreateTempDir flag in CAS registry:
You will need admin rights to modify your registry.  This is the best option when doing a new rollout.  Every CAS shortcut will use this value unless the shortcut specifically overwrites the ForceCreateTempDir flag.

  1. Open your Windows Registry Editor.  (regedit.exe)    
  2. Find the appropriate key for your version of CAS.

    64Bit CAS in 64Bit Windows - HKEY_LOCAL_MACHINE\SOFTWARE\CarlisleGroup\CAS-64 5.0
    32Bit CAS in 64Bit Windows - HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\CarlisleGroup\CAS 5.0
    32Bit CAS in 32Bit Windows - HKEY_LOCAL_MACHINE\SOFTWARE\CarlisleGroup\CAS 5.0
     
  3. Add a new String Value and call it "ForceCreateTempDir".
  4. Set the "ForceCreateTempDir" value to equal 1.