I am trying to distribute an executable that requires command parameters. I need to run this in the user's context so that it points to a path in their profile.
I tried putting %userprofile%\Documents in the parameters, but the log file shows that it translates this to C:\windows\system32\config\systemprofile\Documents causing the exe to fail.
Thinking about it, it seems that this must result from when the variable is resolved. It must be a matter of when the variable is resolved. Anyone know how to ensure that the parameter gets pointed to a path in the logged on user's profile?