Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Batch file to cleanup OS temp and junk files.

3 Weeks Ago   #11
RoWin7

Win 7 Ultimate 64-bit
 
 

error


My System SpecsSystem Spec
.
3 Weeks Ago   #12
RoWin7

Win 7 Ultimate 64-bit
 
 

@torchwood--I've moved my problem to a new thread, as it doesn't deal with Paul's script. If you really get your kicks translating CBS logs, you will be flooded with complaints.

CBS log reflects 2 problems (Attention: @Torchwood)
My System SpecsSystem Spec
3 Weeks Ago   #13
Paul Black

Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
 
 

Hi RoWin7,

Quote   Quote: Originally Posted by RoWin7 View Post
@torchwood--I've moved my problem to a new thread, as it doesn't deal with Paul's script.
Thank you.
My System SpecsSystem Spec
.

3 Weeks Ago   #14
wither 2

Windows 7 Pro SP1 64 bit
 
 

What doesn't the Windows Disk Cleanup utility do in this regard?
My System SpecsSystem Spec
2 Weeks Ago   #15
Paul Black

Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
 
 

Hi torchwood,

Quote   Quote: Originally Posted by Paul Black View Post
Hi torchwood,

Would you be interested in or find this useful!

I know that you are one of the few members here that can analise and diagnose the CBS.log. I have written a batch program that will extract the errors ONLY from the CBS.log. SFC [System File Checker] MUST obviously be run BEFORE running the batch program. The batch program creates a sfc_details.txt file on the desktop. Would it help you to analise and diagnose problems of the CBS.log that members are asked to upload here at SevenForums because it will only contain the exracted errors?
My System SpecsSystem Spec
2 Weeks Ago   #16
RoWin7

Win 7 Ultimate 64-bit
 
 

Paul--

Something's zonky at the forum. I've received notices of post #15 in my email 3 times. Maybe Torchwood's reply is floating in the ethernet.

Tried your script now.
It shut down my Elev Command window, of course didn't run
My System SpecsSystem Spec
2 Weeks Ago   #17
Paul Black

Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
 
 

Hi RoWin7,

Quote   Quote: Originally Posted by RoWin7 View Post
[1] Something's zonky at the forum. I've received notices of post #15 in my email 3 times. Maybe Torchwood's reply is floating in the ethernet.

[2] Tried your script now.
It shut down my Elev Command window, of course didn't run
[1] Yes. I had a couple of problems yesterday where I lost a couple of posts, one of them being post #15, hence you receiving a reply notification that didn't exist so I had ro re-post it. The forum changed over to a new server yesterday which probably caused this minimal clitch.

EDIT: Just seen this post by Barman58 => We moved our server holding this Forum Yesterday.

[2] It is NOT my script but one that can be found in the source link I provided.

I hope this helps!
My System SpecsSystem Spec
2 Weeks Ago   #18
Paul Black

Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
 
 

Hi RoWin7,

Out of interest!

[1] Did you copy the script in post #1 into notepad and save it as a Filename: with a .bat suffix and Save as type: All Files?
[2] Did you include the echo. & pause at the very end of the code?
[3] Did you run it from an elevated command prompt?
[4] Did you see the IMPORTANT section?

I would assume that you didn't run it from an elevated command prompt!
My System SpecsSystem Spec
2 Weeks Ago   #19
RoWin7

Win 7 Ultimate 64-bit
 
 

1--No, I just copied it into my clipboard program and pasted it into the window. If I had saved it as a file, I wouldn't have known how to do it on Elevated Command prompt.
2--I copied and pasted exactly what you wrote.
3-- yes

Not going to play with it anymore.

Are you thinking of sending your variation to Brink as a tutorial?
My System SpecsSystem Spec
2 Weeks Ago   #20
Paul Black

Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
 
 

Hi RoWin7,

Quote   Quote: Originally Posted by RoWin7 View Post
1--No, I just copied it into my clipboard program and pasted it into the window.
That's why it didn't work!
It has to be run from a .bat file as an Administrator.

Quote   Quote: Originally Posted by RoWin7 View Post
Are you thinking of sending your variation to Brink as a tutorial?
That's NOT my variation. My variation will be a bit more complex!
I am just putting something together for me really, hence my request for what others thought!

I hope this helps!
My System SpecsSystem Spec
Reply

 Batch file to cleanup OS temp and junk files.




Thread Tools




Similar help and support threads
Thread Forum
IE11 Saved Passwords gone after cookie/temp files cleanup
hi there, why does IE11 remove all web passwords when you use CC cleaner and the option "saved passwords" is UNTICKED? it seems as though it's ignoring that, unless they are stored elsewhere and they get cleaned with temp files and company cleanup. That setting seems to work for Chrome and...
Browsers & Mail
Advanced Disk Cleanup - Create Shortcuts Without A Batch File!
Hello 7, This is how to create shortcuts for the Advanced Disk Cleanup feature. I keep mine in my Start Menu :geek: These shortcuts do not require batch files or command window, and they execute immediately. Just follow the steps below! NOTE: You MUST be logged in as an administrator to...
Performance & Maintenance
Disk cleanup, difference between temp file options + concerns
Hey guys, im kinda confused how these 2 differentiate. I know that programs use temp files to load faster and sometimes refuse to delete on computer shutdown so its not my problem there. My problem is what is the difference between temp files and temporary internet files? Is temporary internet...
Performance & Maintenance
IE11 Saved Passwords gone after cookie/temp files cleanup
hi there, I would like to know if it's normal that after doing a "maintenance" cleanup on the pc, Ccleaner & PC tools "Clen Your Disk" option, (cookie/temp files, etc), then IE11 will lose all saved passwords. on Ccleaner the option "Saved Password" is UNticked. On Chrome and Firefox...
Browsers & Mail
Temp folder getting filled with batch files
Hello, My temporary folder has been have batch files created in it every 15 seconds or so. My mouse is the arrow with the busy circle at 2'oclock of it constantly, so something is running. I checked my processes and they seemed to all be normal. I updated everything including windows.net 4 so I...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:59.
Twitter Facebook