qwerty
06-24-2007, 05:48 PM
on some of the actions, there is an option "Abort on Fail" options being true or false.
now, this is going to be a strange question, but please humour me !!
can someone explain to me the purpose of this option please ?
as the way i see it, each of these actions is a single task thing, for example file delete, it either deletes the file or doesnt ... end of action, so why have an option to abort on fail, or does it refer to the script as a whole ?
or does it affect the lasterror code ?
reason i ask is because i am having some issues with part of my code relating to file copy and file delete actions ... as in they arent working !!
i think the OS is protecting the files, stopping the delete, or when copying files, if the original file is a higher/newer build and the over-write is not taking place, however, my error check routine which looks for a any error code other than 0 after all the transfers/deletes is not flagging any error :(
i hope that makes sense to someone !
now, this is going to be a strange question, but please humour me !!
can someone explain to me the purpose of this option please ?
as the way i see it, each of these actions is a single task thing, for example file delete, it either deletes the file or doesnt ... end of action, so why have an option to abort on fail, or does it refer to the script as a whole ?
or does it affect the lasterror code ?
reason i ask is because i am having some issues with part of my code relating to file copy and file delete actions ... as in they arent working !!
i think the OS is protecting the files, stopping the delete, or when copying files, if the original file is a higher/newer build and the over-write is not taking place, however, my error check routine which looks for a any error code other than 0 after all the transfers/deletes is not flagging any error :(
i hope that makes sense to someone !