Solved

I wish to set/Export an Environment Variable from within a Powerbuilder Application

Posted on 2010-09-07
3
899 Views
Last Modified: 2013-12-26
Hi,

I would be grateful for an example which illustrates how to export an environment variable from a Powerbuilder application, running on Windows XP.

Thanks

 
0
Comment
Question by:cintra
3 Comments
 
LVL 18

Assisted Solution

by:diasroshan
diasroshan earned 25 total points
ID: 33625076
0
 
LVL 14

Accepted Solution

by:
sandeep_patel earned 100 total points
ID: 33629166
In a system there are two types of env variables..
1) User variables
2) System variables.

> All user variables are defined under below registry...
HKEY_CURRENT_USER\Environment
> All System variables are defined under below registry...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Then use RegistryValues, RegistryGet to get the values of those entries..

You can also use RegistrySet to set new environment variable in registry.

See PB help for more information these functions or let me know if you need more information.

Regards,
Sandeep


0
 

Author Comment

by:cintra
ID: 33634069
Thank you both for taking time to comment. I shall look at both solutions and allocate points shortly.
 
 
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need Tool Easily Convert Text to a quote string 5 35
importing  maven Project 5 311
Aptana 3.6 Preview Problem On Mac 35 136
How to jump to matching brace in eclipse editor ? 1 316
In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question