Hi guys so here is the deal.
I am writing a small VB program that will shell CMD and run a command.
The problem is that the program being called in CMD needs some enviroment variables. I have set these and they are showing up correctly if I open CMD and type 'set'. The enviroment variables are created within the VB script.
Now the problem is that when I shell CMD the command fails as it cannot find the environment variables. I have used Shell ("CMD /k ") so that I could debug this. When I type 'set' here the variables are not there. I assume this is because VB is executing cmd from a user profile without the environment variables saved under.
If anyone has any Ideas on how I can fix this please let me know. I hope this makes sense and feel free to ask any questions to help me sort this out.