cancel
Showing results for 
Search instead for 
Did you mean: 

reading locale system properties like set-variables of a windows Client

Former Member
0 Kudos

Hello,

is there a possibility to read locale system properties like set-variables of a windows Client?

We want to read path-Info and user-info. Can I perhaps user javascript?

Best regards

Oliver Prodinger

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182374
Active Contributor
0 Kudos

Hi Oliver,

This code will work (assuming the client approves running of ActiveX)

<html>
<script>
  var shell = new ActiveXObject("WScript.Shell");
  var env = shell.Environment("process");
  alert(env("COMPUTERNAME"));
  alert(env("USERNAME"));
</script>
</html>  

You can't really run it from WD, but what you can do is run this code from a portal component (DynPage/JspDynPage) that is running in the same page as your WD application and pass data by using portal eventing.

The portal component iview can have size of 1 pixel so it won't be seen...

Regards,

Omri