Treeinfo.wc location
Moderators: Hacker, petermad, Stefan2, white
- AnthonyCian
- Senior Member
- Posts: 265
- Joined: 2005-06-16, 01:45 UTC
- Location: Thatcher Az. USA
Treeinfo.wc location
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
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
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.:
Maybe single folder for all treeinfo files would be better, i.e.:
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:
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).
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
Code: Select all
TreeFileLocation=C:\Treeinfo\treeinfo_%D%.wc
I'm using following one:
Code: Select all
TreeFileLocation=%$LOCAL_APPDATA%\GHISLER\tree_%D%.wc
- AnthonyCian
- Senior Member
- Posts: 265
- Joined: 2005-06-16, 01:45 UTC
- Location: Thatcher Az. USA
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
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
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:
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.
Code: Select all
TreeFileLocation=%R%treeinfo.wc
TreeFileLocationC=C:\_CTEMP\treeinfo.wc
Windows 10 Pro x64, Windows 11 Pro x64
- AnthonyCian
- Senior Member
- Posts: 265
- Joined: 2005-06-16, 01:45 UTC
- Location: Thatcher Az. USA
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
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
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.
File was created exactly in that folder. But I've created that folder myself, TC doesn't create it if it doesn't exists.
I've tested it, and it works perfectly.
Code: Select all
TreeFileLocationC=C:\_C TEMP\treeinfo.wc
- AnthonyCian
- Senior Member
- Posts: 265
- Joined: 2005-06-16, 01:45 UTC
- Location: Thatcher Az. USA