Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

FileMove return success but still did not the job properly

$
0
0

When I try to move file named "testfile.txt" from directory1 (source) to directory2 (destination) with function FileMove then sometimes It will copy that file to new directory2 but leave old file in direcotry1 changing it's name to "testfile (1).txt" instead of deleting it. Other time it will also success to copy to new directory2 but leave two source files "testfile.txt" and "testfile (1).txt" in destination1. In both cases function FileMove returned success. I am not sure but maybe it is caused by syncing that files by google drive pc app during filemove process. I will change destination1 to another folder which will not be synced with google drive to see if it will fix the problem but anyway I am curious why FileMove still returned success? Shouldn't it check if source file still exist before it return success? Is there any UDF or something to detect all errors which might occur during file move like:

- check if destination2 exists

- check if destination2 has enought free space

- check if source file has been deleted successfully without leaving any copy of that file

- check if source file is not used by another process

Any idea? comments? suggestions?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>