/bundles/itninjaweb/img/Breadcrumb_cap_w.png
I want to use WiseScript Editor to grab only the right 12 characters of my 13 character computer name. Then i need that information to be put in an ini file for a specific application to work...Any help would be great...

Scripting %COMPUTERNAME%
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Try this;
*/ Set a blank varable
Set Variable COMPUTERNAME to

*/ populate the varible from the systems environment
Get Environment Variable COMPUTERNAME into Variable COMPUTERNAME

*/ Trim the content with a simple expression evaluation.
Set Variable COMPUTERNAME to Right(COMPUTERNAME,12)


Regards,
Answered 03/08/2004 by: Robo Scripter
Orange Senior Belt

Please log in to comment