#141380 - 2005-06-09 02:58 PM
more drive mapping help - different script this time
|
astout
Fresh Scripter
Registered: 2005-06-07
Posts: 16
|
Am I using the correct syntax here? I do a debug on this and I don't get any errors, but then again, I don't get any drive mappings either.... 
If InGroup("EVERYONE") Shell "NET USE S: \\KC-dc01\SWAPS$" Shell "NET USE G: \\FS1\ENG\SCANS$" EndIf If InGroup ("Administrators") Shell "Net use y: \\fs1\it department$" EndIf
If InGroup ("EngScan") Shell "net use g: \\fs1\eng\scans$" EndIf
If InGroup ("FnForCst") Shell "Net use p: \\kc-exc1\shared\fnforcast$" EndIf If InGroup ("K-pac") Shell " net use p: \\kc-exec1\shared\k-pac$" 'same on this one EndIf If InGroup ("S&OP") Shell "net use q: \\kc-exec1\shared\s&op$" 'this one may give you fits cuz of the & sign EndIf If InGroup ("WKLYORD") Shell "net use r: \\kc-exec1\shared\wkly orders$" EndIf If InGroup ("Senior Staff") Shell "net use U: \\kc-exc1\shared\seniorstaff$"
EndIf
|
|
Top
|
|
|
|
#141381 - 2005-06-09 02:59 PM
Re: more drive mapping help - different script this time
|
astout
Fresh Scripter
Registered: 2005-06-07
Posts: 16
|
and yes, i know EVERYONE and EngScan get the same mapping..... but regardless, it should still map SOMETHING!??
|
|
Top
|
|
|
|
#141383 - 2005-06-09 03:11 PM
Re: more drive mapping help - different script this time
|
astout
Fresh Scripter
Registered: 2005-06-07
Posts: 16
|
so what is wrong with my syntax? Is it the "shell" statement? Honestly I don't even know how to query any vars - I'm a BIG time scripting n00b!
|
|
Top
|
|
|
|
#141386 - 2005-06-09 07:08 PM
Re: more drive mapping help - different script this time
|
astout
Fresh Scripter
Registered: 2005-06-07
Posts: 16
|
thank you SOOOOOOOOO much -- I'm going to try it now.
|
|
Top
|
|
|
|
#141387 - 2005-06-09 10:50 PM
Re: more drive mapping help - different script this time
|
astout
Fresh Scripter
Registered: 2005-06-07
Posts: 16
|
Doesn't map anything!?!?!?
|
|
Top
|
|
|
|
#141389 - 2005-06-09 11:43 PM
Re: more drive mapping help - different script this time
|
astout
Fresh Scripter
Registered: 2005-06-07
Posts: 16
|
that's the thing - i'm not getting any error codes - the GUI pops up - goes through all the checkboxes - then installs VNC and exits but no drives mapped
i just need a simple simple simple If member of then script - apparently this big graphical one is too much for me....
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|