cm_Exit: force-switch if it have opened temporary files?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

cm_Exit: force-switch if it have opened temporary files?

Post by *Hurdet »

Do it is possible to have a switch to force cm_Exit also if it have opened temporary files?
User avatar
beb
Power Member
Power Member
Posts: 580
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: cm_Exit: force-switch if it have opened temporary files?

Post by *beb »

Hurdet wrote: 2023-04-07, 06:21 UTC Do it is possible to have a switch to force cm_Exit also if it have opened temporary files?
What exactly that switch is supposed to do?

E.g., I mainly use cm_Exit as follows:

Code: Select all

[em_bitness] 
cmd=cm_ConfigSavePos,cm_exit 30
[em_restart]
cmd=cm_ConfigSavePos,cm_exit 29
where:
30 = 2+4+8+16
29 = 1+4+8+16
where:

Code: Select all

CM_EXIT supports the following parameters (sum of):
0 or no parameter: Just exit
1: Restart Total Commander
2: Restart Total Commander but switch between 32-bit and 64-bit versions (if the other exists in the same directory)
3: Note: 2 and 3 do the same thing
4: Save paths, directories, tabs, panels (brief, full, etc.), and display modes on exit even when it's disabled in the configuration
8: Pass the current left and right directories and file under the cursor to the new instance
16: Restart with full administrator rights (elevated) (32/64)
Both commands mostly allow you to get after restart in the same place where you were staying upon restart, sometimes including (sometimes not) multilevel archives (depending on what the archive was and at what stage of entering it restart occurred).
Downside: thereafter the unpacked temporary stuff should be deleted manually.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

Re: cm_Exit: force-switch if it have opened temporary files?

Post by *Hurdet »

beb wrote: 2023-04-07, 16:37 UTC
Hurdet wrote: 2023-04-07, 06:21 UTC Do it is possible to have a switch to force cm_Exit also if it have opened temporary files?
What exactly that switch is supposed to do?
I have already written: if it have temporary files opened cm_Exit not work without close user confirm!
Post Reply