Hi,
I have been reading about the Shell Function on MSDN and they claim to have the ability to wait for a shell command to execute before proceeding. My current program works properly with the following Shell command:
Shell("oplrun C:\Example\model.mod C:\Example\data.dat") - this code has no issues and runs properly and I put in a manual wait to wait 5 seconds and it works well 95% of the time, however sometimes the command takes longer than 5 seconds and this messes up. So based on the MSDN Shell function information I tried,
Shell("oplrun C:\Example\model.mod C:\Example\data.dat", , True, 60000) - this code should be setting Wait to true and then timing out at 60000 milliseconds. However I am getting a syntax error, but I can't tell what is wrong.
Has anybody used this wait functionality for the Shell command?
Bookmarks