|
-
September 14th, 2001, 01:05 AM
#1
Set up a directory path using vb script
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.
-
September 14th, 2001, 01:49 AM
#2
Re: Set up a directory path using vb script
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
-
September 14th, 2001, 03:24 AM
#3
Re: Set up a directory path using vb script
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|