How to Schedule Folder Content Deleting Task

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 150
    Windows 7 Ultimate x64, BackTrack Linux 5 R2, Windows XP
       #11

    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 Computer


  2. Posts : 30
    Windows 7
    Thread Starter
       #12

    doubled822 said:
    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 Computer


  3. Posts : 150
    Windows 7 Ultimate x64, BackTrack Linux 5 R2, Windows XP
       #13

    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 Computer


  4. Posts : 30
    Windows 7
    Thread Starter
       #14

    doubled822 said:
    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 Computer


  5. Posts : 150
    Windows 7 Ultimate x64, BackTrack Linux 5 R2, Windows XP
       #15

    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 Computer


  6. Posts : 30
    Windows 7
    Thread Starter
       #16

    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 Computer


  7. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #17

    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 Computer


  8. Posts : 30
    Windows 7
    Thread Starter
       #18

    DavidW7ncus said:
    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 Computer


  9. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #19

    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 Computer


  10. Posts : 150
    Windows 7 Ultimate x64, BackTrack Linux 5 R2, Windows XP
       #20

    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 Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About 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 08:44.
Find Us