Hello!
When I package a form or a script to an exe-file:Is it possible to work with arguments?For example I start the exe with "script.exe -first -second".How can I work with the arguments in the script?Thanks, Paul
Packaged Scripts with arguments?
Packaged Scripts with arguments?
Yes you can access command line arguments by using the $CommandLine variable. It will return the complete argument string passed to the executable, so you will need to parse it.
David
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Packaged Scripts with arguments?
That's great! Thanks.
I see the packager has a lot of additional functions. Is there a complete documentation with all variables an perhaps other things about the packager?Thanks, Paul
I see the packager has a lot of additional functions. Is there a complete documentation with all variables an perhaps other things about the packager?Thanks, Paul
Packaged Scripts with arguments?
We are working on updating the documentation. Since we add more and more to the packager as time progresses, the documentation tends to lag behind.
Sorry for any inconvenience,
David
Sorry for any inconvenience,
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Packaged Scripts with arguments?
No problem. At the moment I'm happy with the $CommandLine and the $ConsoleOutput.
When in future there will be a documentation it would be great!Paul
When in future there will be a documentation it would be great!Paul
- coreyhynes
- Posts: 9
- Last visit: Thu Nov 14, 2013 9:37 am
Packaged Scripts with arguments?
Do you have an example of these, I've not been able to get them to work.
Packaged Scripts with arguments?
We currently don't have an example, but keep an eye on our blog.
What version of PrimalForms are currently running and what packager settings did you use?
Thank you,
David
What version of PrimalForms are currently running and what packager settings did you use?
Thank you,
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Packaged Scripts with arguments?
We just posted a blog on how to use the command line arguments with script packages. The blog post also includes some functions that parse the arguments for you.
View the blog here: http://www.sapien.com/blog/2010/02/09/p ... arguments/
Daviddavidc2010-02-10 10:29:16
View the blog here: http://www.sapien.com/blog/2010/02/09/p ... arguments/
Daviddavidc2010-02-10 10:29:16
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.