This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems with TEMP and TMP environment variables

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC7.56(a)/7.57 bug reports (English) Printable version
View previous topic :: View next topic  
Author Message
gs12
Junior Member
Junior Member


Joined: 05 Apr 2012
Posts: 2

PostPosted: Thu Apr 05, 2012 4:55 am    Post subject: Problems with TEMP and TMP environment variables Reply with quote

Hello,
I'm using Total Commander Version 7.56a 32 bit (16.12.2010)
on Windows 7 SP1 64bit.

Often but not reproducable I get error messages that the path "C:\Users\SYSTEM\AppData\Local\Temp\_tc" is not available when viewing files in an archive with Lister.

If I open a command shell from TC afterwards the TEMP and TMP environment variables have wrong values.
The should be set to "C:\Users\MyAccountName\AppData\Local\Temp" but are set to "C:\Users\SYSTEM\AppData\Local\Temp".
Then I restart TC and the problem disappaers.

My TEMP and TMP environment variables are set to "C:\Users\%USERNAME%\AppData\Local\Temp".
Is this a problem for TC ?

I will change it to "C:\Users\MyAccountName\AppData\Local\Temp" and see if this fixes the problem.

Best regards.
gs12
Back to top
View user's profile Send private message
HolgerK
Power Member
Power Member


Joined: 26 Jan 2006
Posts: 4683
Location: Europe, Aachen

PostPosted: Thu Apr 05, 2012 7:14 am    Post subject: Reply with quote

Do you use a trick like this:
http://www.howtogeek.com/howto/windows-vista/create-administrator-mode-shortcuts-without-uac-prompts-in-windows-vista/
to start TC?

In this case you should control whether you have selected the system-account instead of your own account (see the second picture from the linked site).

Regards
Holger
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34739
Location: Switzerland

PostPosted: Thu Apr 05, 2012 9:45 am    Post subject: Reply with quote

TC may be getting notifications from the system about changed environment variables. You can turn this off by adding the line
UpdateEnv=0

to wincmd.ini section [Configuration].
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7915
Location: Russian Federation

PostPosted: Thu Apr 05, 2012 10:55 am    Post subject: Reply with quote

gs12, maybe you're using some TC plugin (maybe some packer plugin) that changes variables TEMP and TMP to wrong values? I've never seen such strange thing myself.

As I see, my processes that are started with SYSTEM account have C:\Windows\Temp folder as TEMP and TMP, not C:\Users\SYSTEM\AppData\Local\Temp.
And, tasks that are started by task sheduler with my account have correct variable values. I have Win7x64SP1 too.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
gs12
Junior Member
Junior Member


Joined: 05 Apr 2012
Posts: 2

PostPosted: Wed Apr 11, 2012 4:40 am    Post subject: Reply with quote

HolgerK wrote:
Do you use a trick like this:
URL
to start TC?

No TC is started with a normal shortcut.

Since I changed the setting of the TMP and TEMP variables as announced (avoid %USERNAME%) the problem did not occur anymore.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC7.56(a)/7.57 bug reports (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group