/build/static/layout/Breadcrumb_cap_w.png

Scripting %COMPUTERNAME%

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   [ + ] Show comments

Answers (1)

Posted by: Robo Scripter 20 years ago
Orange Senior Belt
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,
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ