Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #182629

Re: Windows %TEMP% folder & files

From Paul <nospam@needed.invalid>
Newsgroups alt.comp.os.windows-10
Subject Re: Windows %TEMP% folder & files
Date 2025-02-28 12:32 -0500
Organization A noiseless patient Spider
Message-ID <vpss0a$3p084$1@dont-email.me> (permalink)
References <vpn7gg$2jeht$1@dont-email.me> <vpptmt$350ck$4@dont-email.me> <vpq3v5.11dg.1@ID-201911.user.individual.net> <vpsdmt$3m2rg$2@dont-email.me>

Show all headers | View raw


On Fri, 2/28/2025 8:29 AM, John C. wrote:
> Frank Slootweg wrote:
>> John C. wrote:
>>>
>>> Here's what I do on a regular basis:
>>>
>>> 1. Open the c:\windows\temp folder in File Explorer
>>> 2. Click on any file in the right hand pane to select it
>>> 3. Press Control-A to select everything in the c:\windows\temp folder
>>> 4. Press the Delete key
>>>
>>> Some files may refuse to be deleted if your system has crashed at any
>>> point, but the vast majority of the files will go to your Recycle Bin.
>>>
>>> 5. Right click on your Recycle Bin
>>> 6. Select "Empty Recycle Bin"
>>
>>   Note that the OP's (Jim Dell) issue is about the %TEMP% folder, not
>> about C:\Windows\Temp.
> 
> Thanks. And I guess that means he meant a C:\WINDOWS\system32\%TEMP%
> folder or C:\WINDOWS\system32\TEMP folder.
> 
> I have only a c:\windows\temp folder in the Windows folder.
> 
>>   That said, the automatic cleaning of %TEMP% which VanguardLH mentioned
>> [1], *also* cleans C:\Windows\Temp, so while anybody is of course
>> free to do it themselves/manually, I think there is no real reason.
>>
>>   I hate to bring it to you, but Windows is not *all* bad! :-)
>>
>> [1] See my pointers to VanguardLH's and my responses in
>> Message-ID: <vpq25k.2go.1@ID-201911.user.individual.net>
> 
> When I run “dir %TEMP%” in Powershell, I get:
> _________________________________________________________________________________
> dir : Cannot find path 'C:\WINDOWS\system32\%TEMP%' because it does not
> exist.
> At line:1 char:1
> + dir %TEMP%
> + ~~~~~~~~~~
>     + CategoryInfo          : ObjectNotFound:
> (C:\WINDOWS\system32\%TEMP%:String) [Get-ChildItem], ItemNotFoundExcepti
>    on
>     + FullyQualifiedErrorId :
> PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
> _________________________________________________________________________________
> 
> If Jim was talking about the temp folder here:
> 
> Users\[Your Username]\AppData\Local\Temp
> 
> I regularly clean it the same way that I do the temp folder in the
> Windows folder.
> 

Well, you're not supposed to run anything in Powershell, now are you :-)

%temp% can be parsed by the Command Prompt shell.
That does not mean Powershell will accept it.

After a web page filled with suggestions didn't work
for Powershell, I tried this:

   echo $env:temp

See if that works.

Or you could try

   cd $env:temp

  Paul

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Windows %TEMP% folder & files Jim Dell <Jim.Dell@gmail.com> - 2025-02-26 09:12 -0500
  Re: Windows %TEMP% folder & files "R.Wieser" <address@is.invalid> - 2025-02-26 16:51 +0100
  Re: Windows %TEMP% folder & files Paul <nospam@needed.invalid> - 2025-02-26 12:53 -0500
    Re: Windows %TEMP% folder & files "Carlos E.R." <robin_listas@es.invalid> - 2025-02-26 19:29 +0100
      Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-02-26 20:46 +0000
        Re: Windows %TEMP% folder & files Ed Cryer <ed@somewhere.in.the.uk> - 2025-02-26 21:15 +0000
          Re: Windows %TEMP% folder & files Newyana2 <newyana@invalid.nospam> - 2025-02-26 20:06 -0500
            Re: Windows %TEMP% folder & files Paul <nospam@needed.invalid> - 2025-02-26 21:09 -0500
            Re: Windows %TEMP% folder & files Ed Cryer <ed@somewhere.in.the.uk> - 2025-02-27 11:15 +0000
              Re: Windows %TEMP% folder & files Newyana2 <newyana@invalid.nospam> - 2025-02-27 07:34 -0500
                Re: Windows %TEMP% folder & files Ed Cryer <ed@somewhere.in.the.uk> - 2025-02-27 19:00 +0000
                Re: Windows %TEMP% folder & files Newyana2 <newyana@invalid.nospam> - 2025-02-27 16:54 -0500
                Re: Windows %TEMP% folder & files Ed Cryer <ed@somewhere.in.the.uk> - 2025-02-27 22:54 +0000
                Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-03-01 15:29 +0000
        Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-02-26 16:06 -0600
          Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-02-27 13:29 +0000
        Re: Windows %TEMP% folder & files Anssi Saari <anssi.saari@usenet.mail.kapsi.fi> - 2025-02-27 12:37 +0200
      Re: Windows %TEMP% folder & files Char Jackson <none@none.invalid> - 2025-02-26 17:57 -0600
        Re: Windows %TEMP% folder & files John <Man@the.keyboard> - 2025-02-27 12:01 +0000
      Re: Windows %TEMP% folder & files Zaidy036 <Zaidy036@air.isp.spam> - 2025-02-26 19:20 -0500
  Re: Windows %TEMP% folder & files Newyana2 <newyana@invalid.nospam> - 2025-02-26 13:42 -0500
  Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-02-26 13:55 -0600
    Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-02-26 14:23 -0600
  Re: Windows %TEMP% folder & files John <Man@the.keyboard> - 2025-02-27 11:47 +0000
    Re: Windows %TEMP% folder & files Jim Dell <Jim.Dell@gmail.com> - 2025-02-27 08:49 -0500
      Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-02-27 15:00 +0000
    Re: Windows %TEMP% folder & files Jim Dell <Jim.Dell@gmail.com> - 2025-02-27 08:49 -0500
  Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-02-27 06:43 -0800
    Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-02-27 15:31 +0000
      Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-02-28 05:29 -0800
        Re: Windows %TEMP% folder & files Paul <nospam@needed.invalid> - 2025-02-28 12:32 -0500
          Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-03-02 06:11 -0800
        Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-02-28 11:39 -0600
          Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-03-02 06:14 -0800
            Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-03-02 15:20 +0000
              Re: Windows %TEMP% folder & files Paul <nospam@needed.invalid> - 2025-03-02 14:57 -0500
                Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-03-02 20:28 +0000
              Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-03-03 06:15 -0800
            Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-03-02 14:44 -0600
        Re: Windows %TEMP% folder & files Mr Xi Ji Ping <ping@china.cn> - 2025-02-28 17:39 +0000
          Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-02-28 12:10 -0600
          Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-03-02 06:18 -0800
        Re: Windows %TEMP% folder & files Jim Dell <Jim.Dell@gmail.com> - 2025-03-01 19:11 -0500
    Re: Windows %TEMP% folder & files John <Man@the.keyboard> - 2025-02-28 23:40 +0000
  Re: Windows %TEMP% folder & files Zaidy036 <Zaidy036@air.isp.spam> - 2025-02-27 10:03 -0500

csiph-web