Exchange parameters/variables between scripts

Discuss Task Sequences and Scripting related issues.

Postby Tech Support » Fri Nov 02, 2007 8:31 am

1) Yes, you should be able to run a 2nd script from within a script though I have never tried it.

2) // set a user variable value
Script.setVar("newVariable", "variable testing" );
String value = Script.getVar("newVariable");
Script.out("New Variable value = " + value );

3) You can also use a set variables task released in 7.36 - here you would have to set the task parameters.. then call the task to set the variable.. but obviously 2) above is simpler..
Patch ID = 7.36 - Use with Versions 7.00 or later ONLY
Patch release date: 08/14/07
* New Set Variable task added. Previously user variables could only be set via commandline.
Tech Support
Site Admin
 
Posts: 1276
Joined: Thu May 25, 2006 11:12 am


Return to Task Sequences, Chains and Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron