Syncprofiles: environment variables are not resolved?

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
seb-
Senior Member
Senior Member
Posts: 276
Joined: 2011-11-15, 06:14 UTC
Location: DE\BN - only part time TC user after switching to Linux ;)

Syncprofiles: environment variables are not resolved?

Post 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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Where does %USERPROFILE% point to? Does it
- contain spaces?
- contain a backslash at the end?
Author of Total Commander
https://www.ghisler.com
seb-
Senior Member
Senior Member
Posts: 276
Joined: 2011-11-15, 06:14 UTC
Location: DE\BN - only part time TC user after switching to Linux ;)

Post 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?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check it. It's a single function call, so it shouldn't be too difficult to add.
Author of Total Commander
https://www.ghisler.com
seb-
Senior Member
Senior Member
Posts: 276
Joined: 2011-11-15, 06:14 UTC
Location: DE\BN - only part time TC user after switching to Linux ;)

Post 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 :)
Post Reply