Results 1 to 8 of 8
  1. #1
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    BECCLES, Suffolk, England
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Clear recent documents

    Moons ago I had a batch programme that I ran on W98 which cleared the recent documents list. It looked similar to this:

    del C:windowsrecent*.*

    Is it possible to add a line in the file so that I don't have to enter Y every time I run it please?
    <IMG SRC=http://www.wopr.com/w3tuserpics/StephenElms_sig.jpg> Didn't think that I made my first post here on 5th February 2001...!

  2. #2
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Clear recent documents

    You shouldn't have to add another line, just add the "quiet" switch to the end of what you already have:

    del C:windowsrecent*.* /q

    (Please be careful that you don't do it wrong!)

    Edited a few minutes later: Oops, wait a minute. I was "working" from my head, not my machine. I just tried my DOS command prompt on a Win98SE installation and the only parameter the DEL command lists is /P. Now I don't know if the /Q parameter works or not. Time out...

  3. #3
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    BECCLES, Suffolk, England
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clear recent documents

    Thanks, I thought I'd try it anyway - no go I'm afraid. Any other idears ?
    <IMG SRC=http://www.wopr.com/w3tuserpics/StephenElms_sig.jpg> Didn't think that I made my first post here on 5th February 2001...!

  4. #4
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clear recent documents

    I thought the switch was
    <code>/y</code>
    or you could type
    <code>del /?</code>
    in a DOS window and see what the switches are.

    See Deleting files in MS-DOS without a prompt for more ideas.

  5. #5
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    BECCLES, Suffolk, England
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clear recent documents

    I tried the /Y after the del. The only switch shown for del is /P. So I think that there must be something else?
    <IMG SRC=http://www.wopr.com/w3tuserpics/StephenElms_sig.jpg> Didn't think that I made my first post here on 5th February 2001...!

  6. #6
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clear recent documents

    OK - see if anything at Rob van der Woude's Scripting Pages helps. Near the bottom is a reference to using the /P switch.

  7. #7
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    BECCLES, Suffolk, England
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clear recent documents

    Many thanks Leif, I found reference to what I was looking for where you suggested. For anybody else's information the runline is
    ECHO Y
    <IMG SRC=http://www.wopr.com/w3tuserpics/StephenElms_sig.jpg> Didn't think that I made my first post here on 5th February 2001...!

  8. #8
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Clear recent documents

    You can use

    deltree /y %winbootdir%recent

    to remove the entire folder and its contents. Windows will recreate it (empty) when it boots in.

    Alan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •