Hi
I need to use vb script to set up a directory path. Say for example,
Set path = c:\program files\
Vbscript doesn't seem to allow user to set a directory path. How can I go about doing it? Please help! Will appreciate if there's source code.
Printable View
Hi
I need to use vb script to set up a directory path. Say for example,
Set path = c:\program files\
Vbscript doesn't seem to allow user to set a directory path. How can I go about doing it? Please help! Will appreciate if there's source code.
The set keyword in VB can only be used to set objects, not to set environment variables. For environment variable, you can use the Environ collection.
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
Is your comment applicable to VB SCRIPT? I can't seem to find any documentation on the setting of environment variables for VB Script. Do you have the source code? Thanks!