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: How to Schedule Folder Content Deleting Task

19 Jun 2012   #11
doubled822

Windows 7 Ultimate x64, BackTrack Linux 5 R2, Windows XP
 
 

Don't worry, we're going to get this! I'm working out a batch that will accomplish this. There are some other commands we have to use but I need to ask, are you trying to delete everything inside of this folder? "C:\Users\{user here}\AppData\Isolated Storage"

If yes, is this batch going to be used for multiple users?


My System SpecsSystem Spec
.
19 Jun 2012   #12
mnr367

Windows 7
 
 

Quote   Quote: Originally Posted by doubled822 View Post
Don't worry, we're going to get this! I'm working out a batch that will accomplish this. There are some other commands we have to use but I need to ask, are you trying to delete everything inside of this folder? "C:\Users\{user here}\AppData\Isolated Storage"

If yes, is this batch going to be used for multiple users?

yes i am trying to delete everything inside the folder.... not needed for multiple users... i have only one user in my os
My System SpecsSystem Spec
19 Jun 2012   #13
doubled822

Windows 7 Ultimate x64, BackTrack Linux 5 R2, Windows XP
 
 

I got it! Copy this code into a text file (be sure to replace "username" with your actual account name) and save it as .bat:

Code:
@echo off
pushd "C:\Users\username\AppData\Local\IsolatedStorage"
for /d %%d in (*.*) do rmdir /s /q "%%d"
del /q *.*
popd
That should be all. Let me know if this works for you!
My System SpecsSystem Spec
.

19 Jun 2012   #14
mnr367

Windows 7
 
 

Quote   Quote: Originally Posted by doubled822 View Post
I got it! Copy this code into a text file (be sure to replace "username" with your actual account name) and save it as .bat:

Code:
@echo off
pushd "C:\Users\username\AppData\Local\IsolatedStorage"
for /d %%d in (*.*) do rmdir /s /q "%%d"
del /q *.*
popd
That should be all. Let me know if this works for you!
Wow .... that worked.... ur amazing... i love this forum...

I also like to learn some computer languages .... i don't have any idea about it....

Thanks a lot
My System SpecsSystem Spec
19 Jun 2012   #15
doubled822

Windows 7 Ultimate x64, BackTrack Linux 5 R2, Windows XP
 
 

Thanks, glad I could help! I am fairly new to this forum as well.

I think you can also mark the thread as solved. Thanks!!
My System SpecsSystem Spec
22 Jun 2012   #16
mnr367

Windows 7
 
 

Thanks for all the help in solving my first query....

I have one more problem which is similar to the old one... so i thought lets ask it here instead of creating a new thread...

I scheduled a Disk Cleanup during every Log on .... But the problem when i do the Disk cleanup Directly.. its cleaning all the temporary internet files , wipe data in recycle bin...

But when the schedule run its not deleting anything .... it just run and show cleaning ...
But its not deleting Temporary internet files and Recycle bin Data ...

Please help me to fix this issue
My System SpecsSystem Spec
22 Jun 2012   #17
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

To help with testing / troubleshooting BAT files:

Add a pause statement at the end of the BAT file.

This will keep the BAT CMD window open until you hit enter to continue.
See if you can find any errors listed in the BAT CMD window before you close it.
My System SpecsSystem Spec
22 Jun 2012   #18
mnr367

Windows 7
 
 

Quote   Quote: Originally Posted by DavidW7ncus View Post
To help with testing / troubleshooting BAT files:

Add a pause statement at the end of the BAT file.

This will keep the BAT CMD window open until you hit enter to continue.
See if you can find any errors listed in the BAT CMD window before you close it.
thanks for ur kind reply ......please look at my last post..... the problem with the bat file is already solved...
My System SpecsSystem Spec
22 Jun 2012   #19
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

I wasn't sure if your last issue / question in post #16 (Disk Cleanup) used a BAT file...
If the issue in Post # 16 is totally different than the issue in this thread, I would start a new thread...
My System SpecsSystem Spec
22 Jun 2012   #20
doubled822

Windows 7 Ultimate x64, BackTrack Linux 5 R2, Windows XP
 
 

Is there a particular reason you feel you need to run Disk Cleanup at each logon? I would find that as a little bit overkill...
My System SpecsSystem Spec
Reply

 How to Schedule Folder Content Deleting Task




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows 7 schedule Task
Hi, Currently having some problem on the schedule job task on windows 7. example script in my bat file as list below. so we schedule and it run only thing is it did not show the dos windows for us to reply message. kindly help. Thanks echo on said Hello pause.
General Discussion
Schedule a task for when computer is idle
Hello guys, I'm having difficulties scheduling a task for when computer is idle. What I want to do is run a task after the computer has been idle for five minutes. I've tried creating a scheduled task in different ways, which will do this, but to no avail. I go to Task scheduler to create a...
Performance & Maintenance
how to set a schedule task to run chkdsk
I tried to to set a schedule task to run chkdsk with a batch file, such as follwoing: echo y|chkdsk C: /F /R shutdown -r I run it on cmd.exe it needs administrator privilege. I run cmd.exe as administrator, then it works. I tried to run it on schedule task and set run by a administrator type...
General Discussion
Schedule a task
I want the computer to execute the following line: mms://wamu-wm.streamguys.com/WAMU-1 at 7:00 am until 10 am Monday through Friday. Unconditionally. I have explored the task menus ad-nausium... and still it does not trigger. There are simply too many options to list them here to...
Customization
How do I schedule a Windows task to run in the foreground?
How do I force a scheduled task to run as a foreground window, to capture the focus when it runs? I wrote a little Delphi app to open a reminder window, but when I schedule it the silly window stays in the background, behind the other 50 windows I routinely have open, and I'm likely to miss it....
Software
Can I schedule a XP Mode task from Win 7?
I have a very old legacy app that would not run or install in Win 7 compatibility mode. I download the Windows VM patch, and the XP Mode application, installed them, and was able to get the application to run. Following some information I found here, I was able to get it pinned to the start menu...
Virtualization


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 13:09.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App