Changing the temporary directory

There are multiple methods to change the temporary directory location

  • Edit the hpsum.ini file from a write-able directory.

  • Write a script to change the hpsum.ini file from a write-able directory.

    1. On a Windows system command line, type:

      echo [Engine] > hpsum.ini

      echo temp_dir=c:/hpsum/logs >> hpsum.ini

      hpsum

    2. Exit the command line.

    1. On a Linux system command line, type:

      echo "[Engine]" > hpsum.ini

      echo "temp_dir=/use/john/hpsum/logs" >> hpsum.ini

      ./hpsum

    2. Exit the command line.

  • Generating the hpsum.ini file when you run HP SUM from a non-writeable directory that redirects other files to the new location.

    1. On a Windows system command line, type:

      mkdir %temp%\HPSUM

      echo [Engine] > %temp%\HPSUM\hpsum.ini

      echo temp_dir=c:/hpsum/logs >> %temp%\HPSUM\hpsum.ini

      hpsum

    2. Exit the command line.

    1. On a Linux system command line, type:

      mkdir /tmp/HPSUM

      echo "[Engine]" > /tmp/HPSUM/hpsum.ini

      echo "temp_dir=/use/john/hpsum/logs" >> /tmp/HPSUM/hpsum.ini

      ./hpsum

    2. Exit the command line.

  • Set the TEMP directory before starting HP SUM on a Windows system.

    1. From a Windows system command line, type:

      set TEMP=c:\hpsum\logs

      hpsum

    2. Exit the command line.