CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Posts
    21

    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.



  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    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
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Dec 1999
    Posts
    21

    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
  •  





Click Here to Expand Forum to Full Width

Featured