Greetings,
I've been using ME for about a year now--and have been using it in increasingly advanced ways. Recently, I created a macro that processes through a text file containing MAC Addresses and IP Addresses.
For each line of the text file, the macro parses the MAC Address portion into one variable and the IP Address into another variable. A ping is done on the IP Address. If the ping results come back with no response, a wake-on-lan is sent to the corresponding MAC address, the sleepy PC information is written to a different text file and the next line is processed.
If the IP gets a ping response, it copies files to the corresponding PC using the Admin (C$) share using Xcopy.exe. It's supposed to wait for xcopy.exe to close (wait indefinitely) before running a netsvc.exe command (designed to remotely start a service). The macro is then supposed to wait for that program to close, too, (also indefinitely) before going back to process the next line of the file.
MacroExpress processes the file perfectly most of the time. In about 5% of the cases, however, it will not wait for the xcopy.exe program to terminate or it will not wait for the netsvc.exe program to terminate or both. I am only eyeballing the programs' DOS windows on the screen to make this assessment. The windows are still visible on the screen and will hang there for a quite a while after. Eventually, they close of their own volition, but the processing of the text file has long since resumed.
It's crucial to the success of the macro that the netsvc.exe *not* run until the xcopy.exe command has completed executing and closed because the netsvc.exe launches a service the executable of which is being copied over via the xcopy.exe. No executable copied: no service actually launched. In fact, it's more harmful than that because the service is started but then gets stuck because it couldn't launch its executable.
This is not the only instance of ME not being bulletproof I have ever seen, but this seems pretty simple stuff. Does anyone have any ideas about what might be going on with ME? Is this just an acceptable loss for a program like this?
Thanks for reading.