المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : enviromental access problem



C++ Programming
04-28-2009, 01:40 PM
I had created variable in user section , using the following code

'defining variables
dim objShell, colUserEnvVars

'initializing all variables
Set objShell = WScript.CreateObject("WScript.Shell")
Set colUserEnvVars = objShell.Environment("System")

'Output File for registry information.
colUserEnvVars("rahul") = "rahul"

but i cannot read the same from c++, for this i have to restart the system,

but Wscript.Echo colUserEnvVars("DeloitteAuditShare123") read the value without restarting ths system.

“You will never be a leader unless you first learn to follow and be led.”
–Tiorio

"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford