Editing files from ftp - tmp folder permission problem

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
s52aa
Junior Member
Junior Member
Posts: 2
Joined: 2012-01-25, 17:41 UTC

Editing files from ftp - tmp folder permission problem

Post by *s52aa »

When trying to edit file on ftp i get following error:

Can not create file, change name:
C:\Program Files (x86)\totalcmd\_tc\xxxx.yy

I know this is windows 7 security issue, because total commander can not write to program files directory, but how to change folder where TC is downloading files from ftp and temporary edit them?

Thank you!
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, s52aa.

By default, Total Commander will use the %TEMP% folder which has been defined for your Windows user profile.

The fact that T.C. tries to create the folder _tc inside its own programme folder might be a hint that your user profile is missing a valid %TEMP% folder.
In order to check, enter cmd.exe in the T.C. commandline and press the enter key.
Inside the cmd.exe window, type echo %TEMP% and press the enter key.
On Windows 7, this command should output the expanded %TEMP% foldername, something like C:\User\<yourname>\Appdata\Local\Temp.
What's the value of %TEMP% in your case?

You might also like to check whether in your wincmd.ini file, in the section [Configuration], there is a parameter WipeDir=<foldername> and if the given foldername somehow points to the T.C. programm folder. If so, simply remove the whole line, stop and restart T.C.

Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
s52aa
Junior Member
Junior Member
Posts: 2
Joined: 2012-01-25, 17:41 UTC

Post by *s52aa »

Thank you for explanation.

Changing %TEMP% folder solved issue..

WAMP installation changed temp folder to something like C:\real\temp\path;C:\wamp\temp\path

removing ;C:\wamp\temp\path solved issue.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, s52aa.

Good to know that you have sorted it out.

The variables %TEMP% and %TMP% must hold a unique valid foldername, not 2 or more. When a second a second foldername was appended the variable %TEMP% was rendered useless.
Therefore removing the second foldername solved the problem.

Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
Post Reply