I just want to move a file after I'm done working with it.
It's a DBF File which I access using ADODB:
Code:
ADODB.Recordset rs= new ADODB.Recordset();
//Connection String = "Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=d:\\hotfolder\\;Exclusive=No"
rs.Open("select * from "+inputFile,DBFConnection,CursorTypeEnum.adOpenKeyset, ADODB.LockTypeEnum.adLockBatchOptimistic,1);
..do stuff
rs.close();
lastSlash = inputFile.LastIndexOf("\\");
moveFile = inputFile.Substring(lastSlash+1);
File.move(inputFile,moveFile)
All my processing works, it just won't let me move the file cause it says it's in use.
Is there additional cleanup I have to do other than rs.close()?
thanks