Re: batch file

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: GoGoGadgetScott (gogogadgetscott_at_hotmail.com)
Date: 04/26/04


Date: Mon, 26 Apr 2004 10:59:58 -0400

Set oWSnet = CreateObject("WScript.Network")
oWSnet.MapNetworkDrive "M:", "\\OutThere\My documents"
'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthmapnetworkdrive.asp

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
On Mon, 26 Apr 2004 08:04:03 +0700, Greg  
<greg.anti.spam@removethis.anet.net.th> wrote:
> they are not scripts. at present we are using batch files. I would like  
> to
> change to be VB scripts. so back to my question. does anyone know how to
> create the equivalent of batch file map network drives using VB script?
>
> Greg C.
>
> "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> message news:#9M48wmKEHA.620@TK2MSFTNGP10.phx.gbl...
>> PFFT!  That is either something they're telling you to shut you up, or
> they
>> don't know what they're talking about.  Booting up has nothing to do  
>> with
>> logon scripts...  Only logging on has to do with logon scripts.  If they
>> were right, that would mean that you could boot up the computer, let it
> sit
>> there for five minutes, and then your logon scripts would run.   
>> Something
>> else is going on that is preventing your scripts from running or  
>> working.
>> Which is the issue?  They aren't running, or they aren't working?  If  
>> they
>> aren't running, this is commonly because your XP machines aren't using  
>> an
> AD
>> domain controller for DNS and the users are being authenticated by  
>> cached
>> logon credentials.  If they're not working, well, what's not working?
>>
>> Ray at home
>>
>> "Greg" <greg.anti.spam@removethis.anet.net.th> wrote in message
>> news:ejXXpvhKEHA.1348@TK2MSFTNGP12.phx.gbl...
>> > Well, used to work on NT machines but stops on XP. Network support guy
>> says
>> > that bootup on XP is too fast for startup batch files to take effect.
>> >
>> > GC
>> >
>> > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
>> > message news:#NKg1BXKEHA.2472@TK2MSFTNGP10.phx.gbl...
>> > > Aren't you interested in finding out why the batch file doesn't  
>> work?
>> If
>> > > that stopped working for some unknown reason, there's a good chance
> that
>> > > it's an external reason that would also prevent a .vbs file from
>> > working...
>> > > Like, the machine isn't finding a DC and scripts aren't running,  
>> drive
>> > > letters aren't available, etc. etc.
>> > >
>> > > Ray at work
>> > >
>> > > "Greg" <greg.anti.spam@removethis.anet.net.th> wrote in message
>> > > news:u%23j$zRWKEHA.2784@TK2MSFTNGP10.phx.gbl...
>> > > > Ive been using a batch file to map network drives but moving to XP
> it
>> no
>> > > > longer works.
>> > > >
>> > > > Is there a way to use VB sripting to do this at startup?
>> > > >
>> > > > Greg
>> > > > gclayton@access.inet.co.th
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>


Relevant Pages

  • Re: batch file
    ... Only logging on has to do with logon scripts. ... this is commonly because your XP machines aren't using an AD ... > that bootup on XP is too fast for startup batch files to take effect. ...
    (microsoft.public.scripting.vbscript)
  • Re: Survey: what do you use to create Login scripts
    ... In the past I always used traditional batch files for login scripts. ... I used to use batch files for everything, but I use VBScript ... ways is similar to batch language, ...
    (microsoft.public.windows.server.general)
  • Unable to remove printers - and its driving me to maddness !!!
    ... but when you login they reappear. ... There are no startup batch files. ... No batch files or scripts in the startup folder ...
    (microsoft.public.windows.server.sbs)
  • Logon script - use batch or VBS script?
    ... We have had some old batch files on our domain for years that use ... Should I get rid of the batch file and then use VBS scripts? ... Install software required for all users ... Map some drives for general public drives etc. ...
    (microsoft.public.windows.group_policy)
  • Re: batch file
    ... change to be VB scripts. ... Only logging on has to do with logon scripts. ... used to work on NT machines but stops on XP. ... >> that bootup on XP is too fast for startup batch files to take effect. ...
    (microsoft.public.scripting.vbscript)