Author Topic: Relative file locations  (Read 2726 times)

DavidSr

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Relative file locations
« on: March 02, 2019, 11:02:43 AM »
Is it possible to have an "Option"  make log file locations relative to root of debug directory?


so instead of C:\advancedhmi\etc..........\debug\logfiles

we could use \logfiles

Then whatever device we run the Hmi from can have log files on it.  If we copy the run time debug directory to a drive outside the pc  or not on the current network we won't have to reconfigure the path.
I would want this as an option in the control config though for the log file location --  Relative or fixed. 

Maybe that is not practical and I would not want time invested in it just for me.
« Last Edit: March 02, 2019, 11:05:16 AM by DavidSr »
David

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Relative file locations
« Reply #1 on: March 02, 2019, 03:58:34 PM »
The ".\" designation specifies to point to the same directory as the executable file.

DavidSr

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Re: Relative file locations
« Reply #2 on: March 02, 2019, 04:41:10 PM »
Ok good, then
          ".\logs"   would direct files to .......\RunTimedirectoryName\logs  right?
David

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Relative file locations
« Reply #3 on: March 02, 2019, 05:08:01 PM »
".\logs"   would direct files to .......\RunTimedirectoryName\logs  right?
Yes