command line to delete folder contents

Page 2 of 2 FirstFirst 12

  1. Posts : 60
    Win7 Ultimate x32
    Thread Starter
       #11

    Still no obvious deletion of ANY files. I repeat that 'manually' I CAN clear the folder, but not by code (in a batch file).
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #12

    The only way that I know how to do it via a batch file involves messing with folder permissions... maybe someone else knows of a safer way.
      My Computer


  3. Posts : 2,171
    Windows 7 Ultimate x64
       #13

    Sebastian42 said:
    I repeat that 'manually' I CAN clear the folder, but not by code (in a batch file).
    Pretty sure UsernameIssues is correct on this. If you are using Explorer to manually clean that folder I think all that's really happening is that you are cleaning files from 4 different folders that actually reside one level deeper.

    If you look at that folder's contents offline (without Windows running) you'll see it only contains one file (that index.dat file) and a bunch of randomly named folders. I think 4 of those folders contain the temporary files you're deleting. The rest of those folders seem to be "decommissioned" folders containing even older temporary files.
      My Computer


  4. Posts : 10,485
    W7 Pro SP1 64bit
       #14

    Sebastian42, I don't use a computer with W7. I have a couple of W7 virtual machines that I can play with and learn from and a few W7 computers that I support. I've used a script to clear IE's data for many years, but I don't know enough about W7 to know what needs to be changed in my script tn order to accomplish what you need.

    The script calls a line like this: RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
    and then the script handles things that the "ClearMyTracksByProcess" call does not clear.

    If you want to run that line inside a batch file, you may see a window popup showing you the progress of the cleanup - it depends on how many files there are to be cleaned and the speed of your computer - you might not see that window.

    There are lots of web pages detailing the flags that can be used with this command.
    The flag would be the 4351 part of:
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

    If you do not want to see the progress window, try:
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 23035

    None of this clears all of the info inside DOMStore and I don't know if that DOM info is what might be causing you problems inside WLM or not. Clearing the IE data via the regular user interface can clear the DOM info. My attempts to ferret out more knowledge about the flags used with ClearMyTracksByProcess via Process Monitor has not yielded the magic flag for clearing that DOM data yet.
      My Computer


  5. Posts : 25,847
    Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
       #15

    This might do what you want.
    Disk Cleanup : Extended
      My Computer


  6. Posts : 10,485
    W7 Pro SP1 64bit
       #16

    Sebastian42 said:
    ....I repeat that 'manually' I CAN clear the folder, but not by code (in a batch file).
    Could you please post a screenshot of the files that you see before you do this manual cleanup.
      My Computer


 
Page 2 of 2 FirstFirst 12

  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:18.
Find Us