I am using this script , that is triggered by a form timer, to move csv files into another folder one they have been inputed into a DB table
Set fs = CreateObject("Scripting.FileSystemObject"
'If fs.FileExists("c:\MYDOCS\*.csv" Then
fs.MoveFile "c:\MYDOCS\*.csv", "c:\PROCESSED\"
But i get an error message appear when the script checks the folder, and there are no csv's in the folder to move. Is there a way i can modify this script to ignore the error message.
TIA
Mark
Set fs = CreateObject("Scripting.FileSystemObject"
'If fs.FileExists("c:\MYDOCS\*.csv" Then
fs.MoveFile "c:\MYDOCS\*.csv", "c:\PROCESSED\"
But i get an error message appear when the script checks the folder, and there are no csv's in the folder to move. Is there a way i can modify this script to ignore the error message.
TIA
Mark