Hi,
I have a vb6 program that calls a vbs-script. This program is run under a different user with admin rights in a shell executed by psexec. I choose to do this so the code in the vbs can be executed with admin rights while the main program itself is run with normal user-rights. Problem is this vbs should return a value to the main VB6 program. I don't know if it's possible to do so, I tried to exchange a parameter by putting the value in an environment variable but it doesn't work either because of the psexec that's running the scrip as a different user so the environment var is only available in this user environment.
Maybe there's an easier way to achieve all this, anyway all help is very much appreciated.
Boein
I have a vb6 program that calls a vbs-script. This program is run under a different user with admin rights in a shell executed by psexec. I choose to do this so the code in the vbs can be executed with admin rights while the main program itself is run with normal user-rights. Problem is this vbs should return a value to the main VB6 program. I don't know if it's possible to do so, I tried to exchange a parameter by putting the value in an environment variable but it doesn't work either because of the psexec that's running the scrip as a different user so the environment var is only available in this user environment.
Maybe there's an easier way to achieve all this, anyway all help is very much appreciated.
Boein