In addition to being able to specify the file to open in the command line when starting DAQFactory, there are a couple other predefined flags. These are all case:
-R: forces DAQFactory into Runtime mode
-F: forces DAQFactory into full screen mode
You can create your own flags as well. To retrieve your flags in script, call system.GetFlags():
System.GetFlags(): returns an array of strings containing all the flags entered in the command line, with the exception of a document name, the -R, -F and -runAsExpress flags, if specified. So, if you did:
DAQFactory.exe MyDocument -F -A -DoSomething
to start DAQFactory, and then called System.GetFlags(), you'd get: {"A","DoSomething"}