Parameters for bound executables
3 posts
• Page 1 of 1
Parameters for bound executables
I have a substantial job to run in the background. It eats and excretes files and can run unattended. The machine to run it might be chosen at runtime, so an EXE with the Dyalog Run-Time DLL bound into it seems convenient.
Were I running this on a machine with a Dyalog interpreter, I would start APLW.EXE from the OS, passing it the DWS, input filenames and output folder as parameters.
The CHM tells me I can't do that with the EXE, which has no access to the command-line parameters. Is this true? (I haven't tested to confirm.) I can invent other ways to pass the EXE its mission, but nothing as convenient as command-line parameters. What have others done?
Were I running this on a machine with a Dyalog interpreter, I would start APLW.EXE from the OS, passing it the DWS, input filenames and output folder as parameters.
The CHM tells me I can't do that with the EXE, which has no access to the command-line parameters. Is this true? (I haven't tested to confirm.) I can invent other ways to pass the EXE its mission, but nothing as convenient as command-line parameters. What have others done?
- sjt
- Posts: 21
- Joined: Fri Nov 05, 2010 6:26 am
Re: Parameters for bound executables
Where in the CHM did you see that?
AFAIK you can create a link that includes parameters on the command line.
Using 2 ⎕NQ'.' 'getcommandlineargs' you should be able to grab them.
AFAIK you can create a link that includes parameters on the command line.
Using 2 ⎕NQ'.' 'getcommandlineargs' you should be able to grab them.
- DanB|Dyalog
Re: Parameters for bound executables
Article "GetEnvironment"
Reading further, I see
Article "Run-Time Application and Components":
The hopeful reading of what you say is that within the Runtime DLL,
will find the parameters used to call the EXE and possibly also parameters bound with the EXE.
GetEnvironment is not supported by DYALOG.DLL because it does not use parameters.
Reading further, I see
Article "Run-Time Application and Components":
The command-line for your application should simply invoke your EXE, with whatever start-up parameters it may require. Note that your application icon and any start-up parameters for the Run-Time Interpreter are specified and bound with the EXE when you make it.
The hopeful reading of what you say is that within the Runtime DLL,
2 ⎕NQ '.' 'getcommandlineargs'
will find the parameters used to call the EXE and possibly also parameters bound with the EXE.
- sjt
- Posts: 21
- Joined: Fri Nov 05, 2010 6:26 am
3 posts
• Page 1 of 1
Return to Windows: GUI, COM/OLE/ActiveX
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group