Click here to Skip to main content
15,888,351 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB zipping folder Pin
dan!sh 28-Oct-10 10:19
professional dan!sh 28-Oct-10 10:19 
QuestionCrystal Report Formating Pin
Nikhil Bhivgade27-Oct-10 21:44
professionalNikhil Bhivgade27-Oct-10 21:44 
AnswerRe: Crystal Report Formating Pin
Richard MacCutchan27-Oct-10 23:04
mveRichard MacCutchan27-Oct-10 23:04 
QuestionTextChanged event not fireing. [SOLVED] Pin
chrispowell1234527-Oct-10 5:57
chrispowell1234527-Oct-10 5:57 
AnswerRe: TextChanged event not fireing. Pin
Dave Kreskowiak27-Oct-10 6:17
mveDave Kreskowiak27-Oct-10 6:17 
AnswerRe: TextChanged event not fireing. Pin
_Erik_27-Oct-10 6:42
_Erik_27-Oct-10 6:42 
GeneralRe: TextChanged event not fireing. Pin
chrispowell1234527-Oct-10 23:41
chrispowell1234527-Oct-10 23:41 
QuestionScript for checking domain & Map Drive Pin
OrdinaryGal27-Oct-10 3:18
OrdinaryGal27-Oct-10 3:18 
Hi,

How to map drive by checking domain name when user log on,such as when user log on domain 1 map network drive = X
and if user log on domain 2 map netwrork drive =Y

I have write a script it as below details,tt seemed didn't work.Plese help. Thanks in advance

Option Explicit

Dim objSystemInfo
Dim objWSHShell
Dim strLogonServer
Dim objNetwork
Dim strDriveLetter, strRemotePath

Set objWSHShell = Wscript.CreateObject("Wscript.Shell")

strLogonServer = objWSHShell.ExpandEnvironmentStrings("%LOGONSERVER%")
WScript.Echo "Server Name is :" & strLogonServer
Set objSystemInfo = CreateObject("ADSystemInfo")
WScript.Echo "Site Namen is: " & objSystemInfo.SiteName
strDriveLetter = "X:"
strRemotePath = "\\domainname\home\"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive strDriveLetter, strRemotePath
WScript.Quit
AnswerRe: Script for checking domain & Map Drive Pin
Dave Kreskowiak27-Oct-10 5:27
mveDave Kreskowiak27-Oct-10 5:27 
GeneralRe: Script for checking domain & Map Drive Pin
OrdinaryGal27-Oct-10 5:41
OrdinaryGal27-Oct-10 5:41 
GeneralRe: Script for checking domain & Map Drive Pin
phil.o27-Oct-10 5:47
professionalphil.o27-Oct-10 5:47 
GeneralRe: Script for checking domain & Map Drive Pin
OrdinaryGal27-Oct-10 5:55
OrdinaryGal27-Oct-10 5:55 
GeneralMessage Removed Pin
27-Oct-10 8:17
flflshop27-Oct-10 8:17 
GeneralRe: Script for checking domain & Map Drive Pin
Dave Kreskowiak27-Oct-10 8:21
mveDave Kreskowiak27-Oct-10 8:21 
GeneralRe: Script for checking domain & Map Drive Pin
phil.o28-Oct-10 5:59
professionalphil.o28-Oct-10 5:59 
GeneralRe: Script for checking domain & Map Drive Pin
Dave Kreskowiak27-Oct-10 6:05
mveDave Kreskowiak27-Oct-10 6:05 
GeneralRe: Script for checking domain & Map Drive Pin
OrdinaryGal27-Oct-10 15:35
OrdinaryGal27-Oct-10 15:35 
GeneralRe: Script for checking domain & Map Drive Pin
Dave Kreskowiak27-Oct-10 17:22
mveDave Kreskowiak27-Oct-10 17:22 
GeneralRe: Script for checking domain & Map Drive Pin
OrdinaryGal28-Oct-10 4:17
OrdinaryGal28-Oct-10 4:17 
Questionvb .net 2008 express edition remove a row in datagridview Pin
Denis999926-Oct-10 3:01
Denis999926-Oct-10 3:01 
AnswerRe: vb .net 2008 express edition remove a row in datagridview Pin
_Erik_26-Oct-10 5:49
_Erik_26-Oct-10 5:49 
AnswerRe: vb .net 2008 express edition remove a row in datagridview Pin
DaveAuld26-Oct-10 5:49
professionalDaveAuld26-Oct-10 5:49 
GeneralRe: vb .net 2008 express edition remove a row in datagridview Pin
Denis999928-Oct-10 0:06
Denis999928-Oct-10 0:06 
QuestionHow to get selected node in a XML with childnodes and childnodes' childnodes? Pin
sanyexian25-Oct-10 22:19
sanyexian25-Oct-10 22:19 
AnswerRe: How to get selected node in a XML with childnodes and childnodes' childnodes? Pin
Eaverae26-Oct-10 19:57
Eaverae26-Oct-10 19:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.