Results 1 to 3 of 3

Thread: Delete hidden dir

  1. #1
    egiggey
    Guest

    Delete hidden dir

    how can I in code delete all the subdir below content.ie5 which is located in the temporary internetfiles dir(hidden)

  2. #2
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Deltree

    Dim cFile As String
    Dim cPath As String

    cPath = "C:\Windows\Temporary Internet Files\Content.IE5"
    cFile = Dir( cPath & "\*.*", vbDirectory + vbHidden + vbSystem )

    Do While cFile <> ""
    If Left$(cFile, 1) <> "." Then
    Shell "Deltree " & cPath & "\" & cFile & " /Y" ' vbHide
    End If
    Loop

    Note: IE must be closed, files cannot be opened.

  3. #3
    egiggey
    Guest
    Another question this app will be used on win98 nt4 and win2k and each has a different path to the temp internet files is there a way to obtain the correct path for each os through an api call?

Posting Permissions

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



Click Here to Expand Forum to Full Width