August 26, 200124 yr I searched this dbase, but not much posted on these 2 Win script steps. Can someone post or send me a small example on how to load(open) a small Bat file, and have that BAT file execute. Thanks, Dale
September 5, 200124 yr Dale, I didn't have any luck either trying to find information on the DDE execute script step. For executing a BAT file I'm using the following workaround: -Create a global container field -Copy the BAT file in this field -Create a script that does a Go to Field (select/perform, "your global field") The automatically opened command window should close automatically as well after the BAT file has finished. Please note that you can only do a 'go to field' script step when the field is on the current layout. The container field does not have to have 'allow entry into field' enabled, but make sure to navigate away from the field in your script as the 'go to field' script step will take you there anyway. Best to put it on another layout (that the script using users must have access to) and navigate to and from this layout in the script. If this is a hosted database please note that the Global field can only be really changed (for all users) when only 1 user has it open. So open the files, stop sharing, change the content of the global container field and start sharing the files again. Good luck, Andries
September 17, 200124 yr Or you just include a "send message" command in the script, file type is "unknown", send the "open doc/application" message and put the complete path (under windows) in the Text field. On the other hand, you may create (calculation) fields that hold the path info for the bat file and use instead the "field value" option to specify. Best wishes Daniel
Create an account or sign in to comment