'Zip packer' Option to Locate TEMP\ Fails

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Phred
Senior Member
Senior Member
Posts: 375
Joined: 2009-06-16, 15:24 UTC
Location: SEAu

'Zip packer' Option to Locate TEMP\ Fails

Post by *Phred »

Not confined to 10.5b, the instruction to locate the user's TEMP directory -
"run 'cd %TEMP%' in command line to see directory"
- fails when the directory is not in the customary place.
A simple change to cd /d %TEMP% in the advice allows a drive-change when executing cd.

When a RAM-disk is used to hold ephemeral temporary files, with a TEMP directory in it and environment variables altered to point to it, plain 'cd %TEMP%' can't work.
'cd /d %TEMP%' works well.
Regards, PhredE
Licence holder since 1999
Awaiting a $D donors-token for the title-bar so we can display that we have donated further.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: 'Zip packer' Option to Locate TEMP\ Fails

Post by *ghisler(Author) »

What RAM disk are you using?

It means that the user doesn't have the "execute" right of the folder, which means that SetCurrentDirectory fails.
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: 'Zip packer' Option to Locate TEMP\ Fails

Post by *Dalai »

2Phred
I'm pretty sure that the instructions refer to TC's command line, not CMD.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: 'Zip packer' Option to Locate TEMP\ Fails

Post by *white »

Dalai wrote: 2022-05-20, 12:29 UTC I'm pretty sure that the instructions refer to TC's command line, not CMD.
Indeed, it says command line, not command prompt.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: 'Zip packer' Option to Locate TEMP\ Fails

Post by *ghisler(Author) »

Yes, TC uses SetCurrentDirectory when you use the "cd" command. This must be failing with your RAM disk.
Author of Total Commander
https://www.ghisler.com
User avatar
Phred
Senior Member
Senior Member
Posts: 375
Joined: 2009-06-16, 15:24 UTC
Location: SEAu

Re: 'Zip packer' Option to Locate TEMP\ Fails

Post by *Phred »

ghisler(Author) wrote: 2022-05-20, 09:10 UTC What RAM disk are you using?

It means that the user doesn't have the "execute" right of the folder, which means that SetCurrentDirectory fails.
I'm using both AMD Radeon RAMdisk and SoftPerfect RAM Disk, on different machines. The behaviour is the same on both.

Yes, I notice now that the config'n line does say 'command line'. I missed that and went straight to a user command prompt, although I will say that 'command line' is a common term for a DOS box.
A command line utility.
Command line switches or parameters.
Command line options.
A command line interface or text interface.

I also notice that 'cd /d %TEMP%' doesn't work in TC's command line.

To the extent that it matters, the instruction could reduce ambiguity by saying '(run 'cd %TEMP%' in TC's command line to see directory)'.
Does TC ever call itself 'TC'?

Otherwise, case closed.
Regards, PhredE
Licence holder since 1999
Awaiting a $D donors-token for the title-bar so we can display that we have donated further.
Post Reply