Hello folks
Does anyone know a way to set a system variable from TC ? (windows)
eg (in cmd prompt) setx CurrentProject c:\projects\currentProject_XX
I can't find a way to set %CurrentProject% = [TC source] as a button.
In Maya it's invaluable (done via Python) as we're jumping between projects all the time. Would love to be able to do the same thing in TC
Shell command to set system variable
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 12
- Joined: 2014-01-10, 15:27 UTC
-
- Junior Member
- Posts: 12
- Joined: 2014-01-10, 15:27 UTC
I believe that it would be better to quote %P to make it working with paths that contain spaces:
Code: Select all
Command: cmd.exe /c
Parameters: setx CurrentProject "%P"