BStewart Posted July 17, 2008 Share Posted July 17, 2008 Howdy... I was wondering if there is a way to execute an external file from within DAQFactory? (say, to run a DOS batch file, or open Excel, from within DAQFactory). Thanks, Ben Link to comment Share on other sites More sharing options...
AzeoTech Posted July 17, 2008 Share Posted July 17, 2008 Yup, use system.shellexecute(): system.ShellExecute("notepad.exe") Check out the help as there are some optional parameters that allow you to do some cool stuff. For example, you can have it use the application to print a document without having the app actually appear. This is the trick to generate text reports in DAQFactory. You use the File. functions to build a .txt file, and then use shellexecute() with "print" to print it. You can also trigger a browser by opening iexplore.exe and passing the http address. Link to comment Share on other sites More sharing options...
BStewart Posted July 18, 2008 Author Share Posted July 18, 2008 cool - thanks..... (I couldnt find it in the manual before posting the question, but can see it now...) thanks again, Ben Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.