Page 1 of 1

Syncprofiles: environment variables are not resolved?

Posted: 2013-12-18, 07:02 UTC
by seb-
Hi,

after my company decided to switch to windows 7, i have to reconfigure my TC a bit.

I actually wanted to use %USERPROFILE%\Data\Projects\ as source path for some of my sync profiles / settings.

Then, when launching the sync tool, th epath is loaded correctly but the sync tool says "Left path invalid"

When i copy the path which is "%USERPROFILE%\Data\Projects\" and put it into Win+R (run), it opens explorer just in this folder, so the path can be resolved. I can even CD to it in TC itself from the internal commandline.

I couldn't find any post relating to use of %USERPROFILE% (or any other enviroment variable) in the Sync Tool, sorry if this has been reported / asked before.


Is it somehow possible, or is it a known bug/limitation/feature that it is not working?

thanks+br
seb

Posted: 2013-12-18, 16:45 UTC
by ghisler(Author)
Where does %USERPROFILE% point to? Does it
- contain spaces?
- contain a backslash at the end?

Posted: 2013-12-19, 06:38 UTC
by seb-
ghisler(Author) wrote:Where does %USERPROFILE% point to?
c:\users\username
ghisler(Author) wrote: Does it
- contain spaces?
- contain a backslash at the end?
both no.

As i said when i copy paste the path with the variable into the Windows-Run dialog, the folder is openend in Explorer window.

I just tried wether %COMMANDER_PATH% works, but it is also invalid in sync tool...

let me know if you need further info.



TC Version is 8.01 2012-08-03. Just in case this should be fixed/invalid with the new version already?

Posted: 2013-12-19, 14:14 UTC
by ghisler(Author)
I will check it. It's a single function call, so it shouldn't be too difficult to add.

Posted: 2013-12-26, 13:01 UTC
by seb-
22.12.13 Added: Support environment variables in synchronize dirs (left and right paths) (32/64)

thanks for the fix in latest beta :)