Jump to content
Sign in to follow this  
leslie

FileMove

Recommended Posts

leslie

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.

Share this post


Link to post
Share on other sites
Rick

Any example script would also be appreciated.


Who needs puzzles when we have AutoIt!!

Share this post


Link to post
Share on other sites
leslie

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 = 1

Ex. Move Dlmbillparty File from C:\KGA\Temp\70061128051101_party.txt to c:\KGA\OutputFiles\70061128051101_party.txt: 1

Unsuccessful results return $Success = 0

Ex. Move Dlmbillparty File from C:\KGA\Temp\70061117051125_party.txt to c:\KGA\OutputFiles\70061117051125_party.txt: 0

Share this post


Link to post
Share on other sites
Joon

Try with FileCopy, maybe you not able to delete the source file.

Share this post


Link to post
Share on other sites
leslie

Try with FileCopy, maybe you not able to delete the source file.

Thanks Joon.

Peace,

Leslie

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.