Thanks for all the suggestions
I have written a batch file that deletes all the folders & Files under
%TEMP%
I don't have Opera browser installed, so it's not the cause of the
scoped folders
Got a question about the files in %TEMP%
There are thousands of them on my system
If you run “dir %TEMP%” from a command prompt you’ll see them.
Mostly mine are
HeadlessChrome304648710500
scoped_dir304_1457881672
folders
The only thing that changes is the numbers after the text.
Yes, a run a Chrome Headless job. Is there a parameter to set to I
should set to prevent the HeadlessChrome folders?
I don’t know what is causing the scoped_dir folders from being created.
Any help would be appreciated.
Jim
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"
Got a question about the files in %TEMP%
There are thousands of them on my system
If you run “dir %TEMP%” from a command prompt you’ll see them.
Mostly mine are
HeadlessChrome304648710500
scoped_dir304_1457881672
folders
The only thing that changes is the numbers after the text.
Yes, a run a Chrome Headless job. Is there a parameter to set to I
should set to prevent the HeadlessChrome folders?
I don’t know what is causing the scoped_dir folders from being created.
Any help would be appreciated.
Jim
Newyana2 wrote:
On 2/27/2025 6:15 AM, Ed Cryer wrote:
I regularly empty my Temp file in users/ Appdata/ Local. I just go
there, select all, and delete. One file won't delete; FXSAP|
DebugLogFile, associated with Windows Fax.
I don't use Chrome, but Edge puts lots of rubbish in there, and even
after a couple of days from empty it will build to 100MB. Why can't
computer programmers clean up their mess? They're as bad as builders.
I once complained to a builder about that, and he said "Oh, you mean
the bits?"
(:- Bits to him; a clean-up job for me!
He probably has a wife who picks up after him.
You mention a script. Others have mentioned other scripts. I'd be
interested in the best available.
To all; If you think you have the best, post here and I'll try them.
I wrote a script on XP because deleting by hand would often
get stopped when one file wouldn't delete. So it was easier to
write a VBScript that would keep going when it hit a file it
couldn't delete. There were also 3 TEMP folders. C:\,
C:\Windows and the appdata TEMP. On Win10 there's still
C:\Windows\TEMP. My Intel graphics is using it now.
My script is nothing special. It just goes through deleting
what it can, gives me a report, then shows a message to run
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
in order to clean anything unnecessary out of winsxs.
That one folder is always the only one that is system-locked and
undeletable. But it provides little hold-up, since WinExplorer tells me
it can't delete it, gives me highlight, and when I hit ok it's the only
one left; job finished.
I never get much debris in the other two folders. The C:\Windows Temp
gets some, but something other than me deletes it occasionally.
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.
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>
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.
When I run dir %TEMP% in Powershell, I get:
dir : Cannot find path 'C:\WINDOWS\system32\%TEMP%' because it does not exist.
John C. wrote:
When I run "dir %TEMP%" in Powershell, I get:
You don't run anything to search for the folder. You simply type
"%TEMP%" in the search box and the folder will open for you automatically.
Have you got a Search box in the taskbar or have you removed it because Indians were spying on you? Please advise.
When I run “dir %TEMP%” in Powershell, I get:
Jim Dell wrote:
Got a question about the files in %TEMP%
There are thousands of them on my system
If you run “dir %TEMP%” from a command prompt you’ll see them.
Mostly mine are
HeadlessChrome304648710500
scoped_dir304_1457881672
folders
The only thing that changes is the numbers after the text.
Yes, a run a Chrome Headless job. Is there a parameter to set to I
should set to prevent the HeadlessChrome folders?
I don’t know what is causing the scoped_dir folders from being created.
Any help would be appreciated.
Jim
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"
I would try to find out what's causing the Temp folder to get flooded
with those "HeadlessChrome" folders. Sound like something that Google
Chrome is creating, if you have Google Chrome installed.
I've never used Google Chrome -hated it from when I first heard about
it- so I couldn't tell you if that's the source.
What really strikes me is that so much documentation
is missing for Win10. It's 10 years old. I used to know prety much
everything on 98 and XP. On 10 I find endless folders with mysterious
names, containing files that are equally mysterious. And no one seems
to know what they are. So much crap.
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
"John C." <r9jmg0@yahoo.com> wrote:
When I run “dir %TEMP%” in Powershell, I get:
dir : Cannot find path 'C:\WINDOWS\system32\%TEMP%' because it does not
exist.
As a script interpreter, Powershell uses its own command set, like Get-Children, instead of the DOS commands in the DOS command interpreter (cmd.exe), like dir. Powershell does have some aliases on DOS commands,
like dir. Powershell isn't a more robust command interpreter. It is a script processor that is tied into .NET [Framework].
https://en.wikipedia.org/wiki/PowerShell
While Powershell and cmd both use console windows to load command shells
in which to execute inputted commands and display stdout, they are very different animals: one is a domestic cat that runs from dogs while the
other is a jaguar that will take on crocodiles. I've had little use for Powershell other than occasionally to do a command that is not available
in cmd.exe, run scripts that would never be possible in batch scripts
using cmd.exe, or to exercise system functions that are obtuse or
missing from other system utilities.
As such, Powershell operates differently on DOS environment variables.
For example, instead of using the DOS command 'set varname=varvalue", in Powershell you use $Env:varname = 'varvalue'.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables?view=powershell-7.5
Unless you're willing to spend the effort and time to learn a new
scripting & system interpreter language, stay away from Powershell.
Learning it is tantamount to learning a new programming language, like
Perl, Javascript, Python, VBA, PHP, ,etc. Just use a DOS shell via
cmd.exe to run the commands and use the syntax to which you are
accustomed.
Load cmd.exe to open a console window in which the command shell
operates, and then issue your DOS commands. Stick with what you know,
or spend time learning Powershell which can take a very long time
considering how vast are its features since Powershell is built on .NET
CLR (Common Language Runtime) where all inputs and outputs are .NET
objects. I'm guessing you don't want to learn .NET nor Powershell.
Learning Powershell is on my to-do list, and I even have a wishlist of
books at my local public library on learning Powershell, but I never
manage to get the time nor motivation to delve much into it.
If you don't want to read books or online tutorials on Powershell to
learn it, go through all the tribulation of testing its use, and spend
time in forums or newsgroups trying to get help, you can find classes on Powershell. IT folks who are newsbies to Powershell take 2 weeks to
learn an intro to /some/ of Powershell, mostly to facilitate their
sysadmin tasks. Most impetus to learn Powershell is by those interested
in the realm of system administration. Of course, to newbies even DOS commands are a chore to learn, and then discover their anomalies.
John C. wrote:
When I run “dir %TEMP%” in Powershell, I get:
You don't run anything to search for the folder. You simply type
"%TEMP%" in the search box and the folder will open for you automatically.
Have you got a Search box in the taskbar or have you removed it because Indians were spying on you? Please advise.
Wow. Thanks for that, VanguardLH. Good info. The main reason I've been
using Powershell is because I'm able to copy and paste commands into it.
I still use the regular command prompt too though.
John C. <r9jmg0@yahoo.com> wrote:
[...]
Wow. Thanks for that, VanguardLH. Good info. The main reason I've been
using Powershell is because I'm able to copy and paste commands into it.
I still use the regular command prompt too though.
You can also copy and paste in a Command Prompt window. Right-click
the upper-left icon, select Properties and on the Options tab tick the 'QuickEdit Mode' setting. You now can copy by selecting a piece of text
and pressing the 'enter' key. Paste is by right-click.
There's also 'Use Ctrl+Shift+C/V as Copy/Paste', but since the
'QuickEdit Mode' method exists since eons (XP? Vista?), I can't be
bothered to use more keys to do the same thing.
On Sun, 3/2/2025 10:20 AM, Frank Slootweg wrote:
John C. <r9jmg0@yahoo.com> wrote:
[...]
Wow. Thanks for that, VanguardLH. Good info. The main reason I've been
using Powershell is because I'm able to copy and paste commands into it. >> I still use the regular command prompt too though.
You can also copy and paste in a Command Prompt window. Right-click
the upper-left icon, select Properties and on the Options tab tick the 'QuickEdit Mode' setting. You now can copy by selecting a piece of text
and pressing the 'enter' key. Paste is by right-click.
There's also 'Use Ctrl+Shift+C/V as Copy/Paste', but since the
'QuickEdit Mode' method exists since eons (XP? Vista?), I can't be
bothered to use more keys to do the same thing.
There is also a scheme in the Terminal window consisting of:
1) Wipe over text to select.
2) Right-click one time, specifies "Copy"
3) Right-click a second time, specifies "Paste".
That's the basic idea at least, and that is pretty handy.
Wow. Thanks for that, VanguardLH. Good info. The main reason I've been
using Powershell is because I'm able to copy and paste commands into it.
I still use the regular command prompt too though.
John C. wrote:
[...]
Wow. Thanks for that, VanguardLH. Good info. The main reason I've been
using Powershell is because I'm able to copy and paste commands into it.
I still use the regular command prompt too though.
You can also copy and paste in a Command Prompt window. Right-click
the upper-left icon, select Properties and on the Options tab tick the 'QuickEdit Mode' setting. You now can copy by selecting a piece of text
and pressing the 'enter' key. Paste is by right-click.
There's also 'Use Ctrl+Shift+C/V as Copy/Paste', but since the
'QuickEdit Mode' method exists since eons (XP? Vista?), I can't be
bothered to use more keys to do the same thing.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 508 |
Nodes: | 16 (3 / 13) |
Uptime: | 230:38:59 |
Calls: | 9,983 |
Calls today: | 1 |
Files: | 13,833 |
Messages: | 6,359,733 |