VBScript: Calling Environment Variables

Discussion in 'Scripting' started by Jason Hummel, Nov 20, 2003.

  1. Jason Hummel

    Jason Hummel Guest

    Hello,
    I am curious to know how you would call a user/system
    variable in VB. For example the %USERPROFILE% variable

    Set objFSO = CreateObject("Scripting.FileSystemObject")
    objFSO.DeleteFolder("%USERPROFILE%\SomeFolder")

    Any help is appreciated.

    Jason
     
    Jason Hummel, Nov 20, 2003
    #1
    1. Advertisements

  2. Jason Hummel

    Dave Patrick Guest

    Dave Patrick, Nov 20, 2003
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.