Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scripting and deletefile and McAfee

Status
Not open for further replies.

PizMac

Programmer
Nov 28, 2001
90
GB
I am using the following code to delete a file and then copy another to it - my problem is that the scripting causes McAfee virus checker to prompt the user to continue - is there an alternative way to do such operating system related tasks without causing McAfee concern please?

Set fs = CreateObject("Scripting.FileSystemObject")
fs.deletefile TcopyFile, -1
fs.CopyFile TFilename, TcopyFile

Thanks
 
Pure VBA:
Kill TcopyFile
FileCopy TFilename, TcopyFile

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top