Click to See Complete Forum and Search --> : Set up a directory path using vb script


zenn0
September 14th, 2001, 01:05 AM
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.

Cakkie
September 14th, 2001, 01:49 AM
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
slisse@planetinternet.be

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

zenn0
September 14th, 2001, 03:24 AM
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!