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

Help with AdlibRegister / AdlibUnregister

$
0
0
Hi

I got a question about "AdlibRegister" and "AdlibUnregister"

I made a little Backupscript, using robocopy.

It will backup 6 libraries

There are 6 _RunDOS Commands, processed one by one.

Example:

[ autoit ]      
_RunDOS (robocopy blabla library1 blabla) _RunDOS (robocopy blabla library2 blabla) ....

OK, so far...

Now the question: I'd like to Adlibregister a function, which should get the size of the destinationfolder every 10 seconds while the _RunDOS Commands are being processed.
I do it like this:

[ autoit ]      
AdlibRegister("FUNCBLABLA", 10000) _RunDOS (robocopy blabla library1 blabla) _RunDOS (robocopy blabla library2 blabla) .... AdlibUnregister("FUNCBLABLA") Func FUNCBLABLA() $size = DirgetSize("UNCblabla") GUICtrlSetData($blablalabel, $size) Endfunc


OK, now...the destinationfolder is on a server, the sourcefolder(s) are local (what else....)

Sometimes, it works, sometimes it processes only 2 of the 6 _RunDOS Commands and the the script stands still...

why doesn't it work all the 6 steps EVERYTIME?....is it because of AdlibRegister?

Thanks for your help

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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