Hi all I have a script that worked great to clear out a file with XP and windows xp
and works great on servers when run for a 2003 server
Im trying to modify it to work on windows 7 64bit as we have an autocad virus multiplying and I need to crush it on end users machines, now i just dabble in code and grab some from sites but this has been great in the past see code below however when I run it one windows 7 64 bit it errors out and says like 10 character 3
Any help would be great so I dont have to manually search each machine in our office
START_FOLDER = "D:\"
PREFIX = "acad.lsp"
Set oFSO = CreateObject("Scripting.FileSystemObject")
ProcessSubFolders oFSO.GetFolder(START_FOLDER), iCount
Sub ProcessSubFolders(oFolder, iCount)
Set cFiles = oFolder.Files
For Each oFile In cFiles
If Left(oFile.Name, Len(PREFIX)) = PREFIX Then
iCount = iCount + 1
For Each oSubFolder In oFolder.SubFolders
ProcessSubFolders oSubFolder, iCount
WScript.Echo "Files deleted: " & iCount