K1000 prepending "C:\Windows\system32\config\systemprofile" when using enviornment variables
When creating a KSCRIPT and using the verify that a file exists task/step, K1000 is prepending "C:\Windows\system32\config\systemprofile" into the directory/path when using an environment variable such as %USERNAMES% or %APPDATA%.
For example, if I enter C:\%AppData%\Roaming\Autodesk\Revit\Addins\2016\ as the directory to check if file exist, then K1000 will prepend C:\Windows\system32\config\systemprofile, thus looking for the fileĀ in the wrong directory/path and triggering this error in the logs: File does not exist: C:\C:\Windows\system32\config\systemprofile\AppData\Roaming\Roaming\Autodesk\Revit\Addins\2016\FileName.Extension
We're on version 7.1.149 of K1000 appliance.
I found another KB article describing a similar issue with an older version of K1000 here: https://support.quest.com/kace-systems-management-appliance/kb/113838
-
I should mention that running the scrip as "logged-in user" doesn't make a difference. - jcalvo@huntonbrady.com 7 years ago
Answers (1)
Comments:
-
I thought this was the issue as well, but I've tried running the script as "logged-in user" and it doesn't make a difference. - jcalvo@huntonbrady.com 7 years ago