Results 1 to 12 of 12

Thread: deleating .bak files from subfolders

Hybrid View

  1. #1
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: deleating .bak files from subfolders

    change this sub to reflect these changes . add in your admin user name and pass ..


    Code:
    Sub ParseFolder()
    	Dim WshShell
    	Set WshShell = Createobject("Wscript.Shell")
    	WshShell.Run "runas /user:ADMINNAME", 0, True
    	WshShell.Sendkeys "ADMINPASS"
        	Call DeleteFiles()
        	Call EndMessage()
    	Set WshShell = Nothing
    End Sub

  2. #2
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: deleating .bak files from subfolders

    Sorry, didnt realise you were also dealing with Read Only files .. update this line .. Forcing Deletion with the TRUE.

    objFile.delete(True)

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