none
HI! THIS IS MY FIRST POST RRS feed

  • Question

  • How can I use variable of Batch like 
    %windir%
    %userprofile%
    %systemdrive% in a vbs script ?

    Tuesday, June 10, 2014 11:55 AM

Answers

  • How can I use variable of Bath like 
    %windir%
    %userprofile%
    %systemdrive% in a vbs script ?

    Here you go:

    Set oWshShell = WScript.CreateObject("Wscript.Shell")
    MsgBox "Your user profile folder is " & oWshShell.ExpandEnvironmentStrings("%UserProfile%")

    Tuesday, June 10, 2014 12:42 PM

All replies