I need to have two processes running on Windows (7), where both of them will have different substitued drives, like:
subst P:\ C:\path1
...and the second one
subst P:\ C:\path2
(Why do I need it: Old project files (C++ Builder 5) have the paths to source codes and libraries specified like P:\,L:\,....etc ... and I need them to compile on a buildserver)
How Iam solving it right now:
creating net user temporaryuser
paexec/pstools login as temporary user, runing subst and then running the build
Is there any other (or better) solution? -> Even making a systemwide hook that would respond with a substitued drive based on a process-id, is, for me, actually a better solution.
(What cannot be done: -> C++ Builder 5 does not accept %variables% inside project files, so that is not an option. -> Manually substituing drives in project files is dangerous, because the whole thing goes from git and then gets commited again)
Thank you!