Treeinfo.wc location

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
AnthonyCian
Senior Member
Senior Member
Posts: 265
Joined: 2005-06-16, 01:45 UTC
Location: Thatcher Az. USA

Treeinfo.wc location

Post by *AnthonyCian »

Hi,
Using Windows 7, 64bit, TC v8 32bit because of plugins that I want...

Anyway > The treeinfo.wc file is unable to write to the root of C because of permissions. I like to have that file located C:\_C TEMP\treeinfo.wc

I read the treeinfo help and I am confused on how to do this (need examples). Can someone write the line for me? Then I can just copy it in the INI file. I use other drives (network and one USB external drive), and the treeinfo.wc files are working fine on these drives, I just need the treeinfo.wc file changed on the C drive.

A BIG THANK YOU...
Anthony
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can't move treeinfo file for specific drive only, you only can move all treeinfo files.

This will move treeinfo file on C: to C:\_C TEMP, on D: to D:\_D TEMP etc.:

Code: Select all

TreeFileLocation=%D%:\_%D% TEMP\treeinfo.wc
Maybe single folder for all treeinfo files would be better, i.e.:

Code: Select all

TreeFileLocation=C:\Treeinfo\treeinfo_%D%.wc
In such case you need to enable write permissions for single folder only (or simply use path where users are able to write).
I'm using following one:

Code: Select all

TreeFileLocation=%$LOCAL_APPDATA%\GHISLER\tree_%D%.wc
You can also try to enable write permissions for treeinfo file in the root of C: once (run TC as admin once before and open tree to create it and then modify permissions).
User avatar
AnthonyCian
Senior Member
Senior Member
Posts: 265
Joined: 2005-06-16, 01:45 UTC
Location: Thatcher Az. USA

Post by *AnthonyCian »

Thanks MVV:

TreeFileLocation=%D%:\_%D% TEMP\treeinfo.wc - - - This does put the treeinfo file in C:\_CTemp. However, it effects the other drives. Unable to write treeinfo.wc on the root of those drives.

TreeFileLocation=C:\Treeinfo\treeinfo_%D%.wc - - - Nothing happens on this one...

TreeFileLocation=%$LOCAL_APPDATA%\GHISLER\tree_%D%.wc - - - Works as mentioned but like the treeinfo files to be on their own drives.

It should be simple to just have the treeinfo file put in a certain folder on the C drive other than the root, without effecting how the treeinfo file writes to the roots on the other drives.

I tried to get permissions on the Root drive, but IS ruling is a no.

Anthony
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

By default, TC puts treeinfo.wc to the root of each specific drive and if that location is not writable, TC creates treeinfo<driveletter>.wc in %LOCAL_APPDATA%\GHISLER\. If you want to use a different directory only for drive C, add these lines to your wincmd.ini:

Code: Select all

TreeFileLocation=%R%treeinfo.wc
TreeFileLocationC=C:\_CTEMP\treeinfo.wc
The first line says that treeinfo.wc should be stored in a root of a drive. The second one says, that specificaly for drive C it should be stored somewhere else. The first line might seem to be redundant since it just imitates the default behavior, but TreeFileLocation<driveletter> requires TreeFileLocation to be defined as well.
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
AnthonyCian
Senior Member
Senior Member
Posts: 265
Joined: 2005-06-16, 01:45 UTC
Location: Thatcher Az. USA

Post by *AnthonyCian »

Thanks umbra:

I tried the youre code and no treeinfo.wc was created in the C:\_CTEMP\ folder, sorry to say. It didn't create the file anywhere. The other drives were not effected, worked ok.

For now I just have TreeFileLocation= in the ini file, and it writes the file in the Ghisler folder. It's ok, but was hoping to have it in said folder.

AnthonyC
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

AnthonyCian, have you created that folder before? Do users have write permissions to it? Try to start TC with admin rights to check if folder path is specified correctly.

I've tested it, and it works perfectly.

Code: Select all

TreeFileLocationC=C:\_C TEMP\treeinfo.wc
File was created exactly in that folder. But I've created that folder myself, TC doesn't create it if it doesn't exists.
User avatar
AnthonyCian
Senior Member
Senior Member
Posts: 265
Joined: 2005-06-16, 01:45 UTC
Location: Thatcher Az. USA

Post by *AnthonyCian »

Yes, the _C Temp folder was user created, and all files in that folder can be modified, deleted, created from scratch. I've decided to just use TreeFileLocation= and have the wc file default in the Ghisler folder.

Thanks everyone for taking time to help on this issue.

AnthonyC
Post Reply