Computing.Net > Forums > Programming > VBScript + Network + %username%

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VBScript + Network + %username%

Reply to Message Icon

Name: DougBlane
Date: April 19, 2004 at 06:56:17 Pacific
OS: w2k
CPU/Ram: n/a
Comment:

I use a VBScript log-on script to connect users to mapped network drives.

Option Explicit
On Error Resume Next
Dim oNetwork1
Set oNetwork1 = CreateObject("WScript.Network")
oNetwork1.MapNetworkDrive "I:", "\\server\dir"
oNetwork1 = nothing

I would like to connect individual users to individual drives, so I replaced \\server\dir with \\server\%username% however this doesn't work.

Please would you advise me on how I can do this?



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VBScript + Network + %username%

right html page according %username% www.computing.net/answers/programming/right-html-page-according-username/2279.html

VBScript Printing Enviroment Vars www.computing.net/answers/programming/vbscript-printing-enviroment-vars/9426.html

vbScript help www.computing.net/answers/programming/vbscript-help/20149.html