leslie Posted December 8, 2006 Share Posted December 8, 2006 The code inconsistently moves batches. Ex: Batches 1-5 will be successful then batch 6 fails then batches 7-30 are successful and batch 31 fails This is the code: FileMove($dlmparty_handle, $Compl_dlmparty_handle,1) Any ideas? Any help would be appreciated. Link to comment Share on other sites More sharing options...
Rick Posted December 8, 2006 Share Posted December 8, 2006 Any example script would also be appreciated. Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
leslie Posted December 8, 2006 Author Share Posted December 8, 2006 Any example script would also be appreciated.This is everything. $Success = FileMove($dlmparty_handle, $Compl_dlmparty_handle,1)WriteToLogFile($LogFolder&$LogFile,"Move Dlmbillparty File from "&$dlmparty_handle&" to "&$Compl_dlmparty_handle&": "&$Success) Successful results return $Success = 1Ex. Move Dlmbillparty File from C:\KGA\Temp\70061128051101_party.txt to c:\KGA\OutputFiles\70061128051101_party.txt: 1Unsuccessful results return $Success = 0Ex. Move Dlmbillparty File from C:\KGA\Temp\70061117051125_party.txt to c:\KGA\OutputFiles\70061117051125_party.txt: 0 Link to comment Share on other sites More sharing options...
Joon Posted December 8, 2006 Share Posted December 8, 2006 Try with FileCopy, maybe you not able to delete the source file. Link to comment Share on other sites More sharing options...
leslie Posted December 8, 2006 Author Share Posted December 8, 2006 Try with FileCopy, maybe you not able to delete the source file.Thanks Joon. Peace,Leslie Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now