Computing.Net > Forums > Windows XP > vbs script

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.

vbs script

Reply to Message Icon

Name: lars
Date: October 10, 2003 at 03:23:25 Pacific
OS: windows xp
CPU/Ram: p4/1024
Comment:

Option Explicit

Dim Message
Dim net
Dim username
Dim pwd
Dim driveletter
Dim project
Dim server
Dim resultat

username = InputBox(Message, "Username")
pwd = InputBox(Message,"Password")
server = InputBox("Server ip address with \\ infront and \ at the end", "Server address")
driveletter = InputBox("Driveletter with :", "Driveletter")
project = InputBox("Project name", "Porject name")

resultat = server + project

set net = Wscript.CreateObject("Wscript.Network")
net.MapNetworkDrive driveletter,resultat, , username, pwd


This works, but I would like to "hide" the password when I type it in, and also be able to note type in the : after the drive letter and if possibel to put in the \\ infront of the server ip and a \ at the end.



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 Windows XP Forum Home


Sponsored links

Ads by Google


Results for: vbs script

VB Script help www.computing.net/answers/windows-xp/vb-script-help/165362.html

MY PICTURES TURNED TO VB SCRIPT FILES!! www.computing.net/answers/windows-xp/my-pictures-turned-to-vb-script-files/9719.html

VBS script to find files www.computing.net/answers/windows-xp/vbs-script-to-find-files/156696.html