in

Windows Server Team

A community for everyone interested in Windows Server

What's better for mapping drives, batch files or VBScript?

Last post 08-19-2008 6:47 AM by pagy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-06-2008 5:02 AM

    • bobTFU
    • Top 25 Contributor
    • Joined on 08-06-2008
    • Posts 1

    What's better for mapping drives, batch files or VBScript?

     Hello,

    hoping this will be an easy question for someone out there:

    'What's better for mapping drives, batch files or VBScript?'

    I'm writing a logon script that maps various network drives for staff.  the environment is W2K3 Server and WinXP clients (with an eye to moving toward Vista once it becomes more viable). 

    i could do it in either VBScript, or as a batch file. 

    the batch file (using the 'net use <letter> <path>' command) seems to be the more elegant solution as it seems to take a lot less lines of code to create mappings than the VBS equivalent.  I do need to implement some flow-control based on users' group memberships, but again the batch file solution seems to be slightly less wordy.

    on the other hand VBS is alot newer and the trend seems to be to move away from batch files and towards VBS.

    Can anyone help?!

     Cheers

    Bob

  • 08-19-2008 6:47 AM In reply to

    • pagy
    • Top 10 Contributor
    • Joined on 08-19-2008
    • UK
    • Posts 2

    Re: What's better for mapping drives, batch files or VBScript?

     I prefer vbscript, see the below for a very good faq on using vbscript for this purpose;

     

    http://tek-tips.com/faqs.cfm?fid=5798

    Paul
    MCSA:2003
    MCSE:2003
    MCITP:Enterprise Administrator
Page 1 of 1 (2 items)
Copyright belongs to authors
Powered by Community Server (Non-Commercial Edition), by Telligent Systems