TC 9.51 - TC can rename its own directory where installed while running
Moderators: white, Hacker, petermad, Stefan2
TC 9.51 - TC can rename its own directory where installed while running
OS: `Windows 7 x64`
It's kind of a strange thing I never seen before.
I've tried accidentally to rename a directory and has renamed the wrong one where the TC is running and it has let me did that!
Because I have installed the TC into different place, then I have tried to test that for a directory, where the installer has trying to install by default and it didn't work out: `c:\totalcmd`
Then later I've noticed that there was other directories around and tried to create the same directory near the `c:\totalcmd`: `c:\totalcmd scripts`
And.. It let me rename the directory: `c:\totalcmd1` !
The `Process Hacker` reported the process is running with the same process id in non existed directory!
I've tested it with the Far, it didn't work there.
What the hell was that?
It's kind of a strange thing I never seen before.
I've tried accidentally to rename a directory and has renamed the wrong one where the TC is running and it has let me did that!
Because I have installed the TC into different place, then I have tried to test that for a directory, where the installer has trying to install by default and it didn't work out: `c:\totalcmd`
Then later I've noticed that there was other directories around and tried to create the same directory near the `c:\totalcmd`: `c:\totalcmd scripts`
And.. It let me rename the directory: `c:\totalcmd1` !
The `Process Hacker` reported the process is running with the same process id in non existed directory!
I've tested it with the Far, it didn't work there.
What the hell was that?
Re: TC 9.51 - TC can rename its own directory where installed while running
[mod="Hacker"]Moved to the English forum.[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: TC 9.51 - TC can rename its own directory where installed while running
andry81,
What is the bug? You can rename any directory that is not locked.
Roman
What is the bug? You can rename any directory that is not locked.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: TC 9.51 - TC can rename its own directory where installed while running
I didn't try to rename any directory, only the TC installation one.
- Wilhelm M.
- Power Member
- Posts: 999
- Joined: 2003-06-05, 10:45 UTC
Re: TC 9.51 - TC can rename its own directory where installed while running
Well, seems a problem to me. Assume that TC is configured to save its configuration during closing. Since TC was started from a certain directory it tries to save into a directory that does not exist anymore. Admitted, I have not tried it and I do not want to ...
Grüße/Regards,
Wilhelm
Wilhelm
Re: TC 9.51 - TC can rename its own directory where installed while running
Wilhelm M.,
Yes, well, one has to take that into account when renaming any directory. Some program might want to write into it but it will be renamed already. I don't think it's TC's job to tell the user before any action that "your action might have consequences".
Roman
Yes, well, one has to take that into account when renaming any directory. Some program might want to write into it but it will be renamed already. I don't think it's TC's job to tell the user before any action that "your action might have consequences".
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: TC 9.51 - TC can rename its own directory where installed while running
andry81,
Roman
That counts as any.I didn't try to rename any directory, only the TC installation one.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
- Wilhelm M.
- Power Member
- Posts: 999
- Joined: 2003-06-05, 10:45 UTC
Re: TC 9.51 - TC can rename its own directory where installed while running
I agree with you - in principle . But the same could be argued if e.g. you delete the TOTALCMD.EXE from witihin TC. The system could let you do it - if you are stupid enough, take the consequences. But there is an error message (I think, don't want to try that either), with good reason. Okay, I don't want to exaggerate the importance of this, but I understand the doubts of andry81.Hacker wrote: ↑2020-05-20, 13:00 UTC Wilhelm M.,
Yes, well, one has to take that into account when renaming any directory. Some program might want to write into it but it will be renamed already. I don't think it's TC's job to tell the user before any action that "your action might have consequences".
Roman
Grüße/Regards,
Wilhelm
Wilhelm
Re: TC 9.51 - TC can rename its own directory where installed while running
Wilhelm M.,
Roman
Yes, well, because it is locked. Then we can rephrase the question to if TC should lock all files it might need in the future.there is an error message
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
- Wilhelm M.
- Power Member
- Posts: 999
- Joined: 2003-06-05, 10:45 UTC
Re: TC 9.51 - TC can rename its own directory where installed while running
No, sir. Just its own directory name which has nothing to do with the future. Thats a bit polemical, isn't it? Because changing the directory name changes all the paths to files required by TC itself. I cannot imagine any situation when such a name change would make sense. So if a user tries to do that, it must be an error - and should be forbidden.
BTW: what about the other file managers? Can you also use them to cut down the branch on which you are sitting?
BTW: what about the other file managers? Can you also use them to cut down the branch on which you are sitting?
Grüße/Regards,
Wilhelm
Wilhelm
- Wilhelm M.
- Power Member
- Posts: 999
- Joined: 2003-06-05, 10:45 UTC
Re: TC 9.51 - TC can rename its own directory where installed while running
Yes, other file mangagers are just as stupid as TC! Tried FreeCommanderXE a few moments ago and found the same behaviour. After changing the directory name, closing the commander results in an error message: Cannot write FreeComander.ini or something like that. So this is general behaviour and has nothing to do with TC. As expected.
Grüße/Regards,
Wilhelm
Wilhelm
Re: TC 9.51 - TC can rename its own directory where installed while running
Wilhelm M.,
Roman
Well, you referred to TC saving its configuration in the future:its own directory name which has nothing to do with the future
Assume that TC is configured to save its configuration during closing.
Well, depends, TC can have everything loaded in memory already. Or it can use relative paths.changing the directory name changes all the paths to files required by TC itself
Well, renaming a portable TC directory? Testing different TC portable versions in different directories? Correcting a typo in a portable TC directory name?I cannot imagine any situation when such a name change would make sense.
How would you rename TC's dir otherwise when you need to? Would you have to run Explorer? Or download and install some other file manager just to rename TC's dir?So if a user tries to do that, it must be an error
No, definitely not.it must be an error - and should be forbidden.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
- Wilhelm M.
- Power Member
- Posts: 999
- Joined: 2003-06-05, 10:45 UTC
Re: TC 9.51 - TC can rename its own directory where installed while running
Well, I always use TC in portable mode. And the examples you mention, when renaming does make sense - I would exactly do what you seemingly don't want to do: use another file manager or (even) Windows Explorer. Why not? In everyday work I would never use WE (puh!), but in this special case? WE may be gruesome but it does not carry the corona virus. So touching it will not harm.
But let's stop here. I got your point. And andry81's problem is not my problem.
But let's stop here. I got your point. And andry81's problem is not my problem.
Grüße/Regards,
Wilhelm
Wilhelm