+ Post New Thread
Results 1 to 12 of 12
Web Development Thread, Would like to learn VBS in Coding and Web Development; Hi, I would like to learn how to write vbs programs so i can automate tasks etc on servers and ...
  1. #1

    Join Date
    Nov 2006
    Posts
    547
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Would like to learn VBS

    Hi,

    I would like to learn how to write vbs programs so i can automate tasks etc on servers and workstations. I have little programing experience, wrote the odd bat file but thats about it.

    Does any one know of a good book that could help get me started, or know of any free learning material on the web?

    cheers

  2. #2

    Join Date
    Mar 2007
    Posts
    1,669
    Thank Post
    72
    Thanked 249 Times in 199 Posts
    Rep Power
    64

    Re: Would like to learn VBS

    for dummies is always a good place to start i find, and always great for a reference once your past the dummy stage.

  3. #3

    Join Date
    Nov 2006
    Posts
    547
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Would like to learn VBS

    will take a look, thank you

  4. #4

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179

  5. #5
    Diello's Avatar
    Join Date
    Jun 2005
    Location
    Kent, England
    Posts
    1,063
    Thank Post
    111
    Thanked 228 Times in 128 Posts
    Rep Power
    73

    Re: Would like to learn VBS

    Personally I wouldn't bother learning VBS now, it's been superceded by PowerShell, and will be the foundation scripting lang, command line, and basis for future MS OS's & server apps, as well as working with current versions. Might as well learn the latest stuff.

    I'd recommend Don Jones's 'Windows PowerShell: TFM' http://www.amazon.co.uk/Windows-Powe...3984272&sr=8-7

    If you really want to go down the VBS route though - try http://www.amazon.co.uk/Microsoft-VB...3984484&sr=8-2

    Hope that's of some use!

  6. #6
    StewartKnight's Avatar
    Join Date
    Jun 2005
    Posts
    1,587
    Thank Post
    2
    Thanked 27 Times in 21 Posts
    Rep Power
    29

    Re: Would like to learn VBS

    I prefer this

    And the dummies books are useless in my opinion. The SAM books are slightly better, but still far to basic.

  7. #7

    Join Date
    Nov 2006
    Posts
    547
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Would like to learn VBS

    hey guys sorry late responce

    yeh i think the dummies books are rubbish and aint the money.

    as im also studying towards the mcse 2003, i figured it would be a good idea to learn VBScript.

    will windows power shell run on server 2003 and xp?

  8. #8

    Join Date
    Nov 2006
    Posts
    547
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Would like to learn VBS

    looks like it does, just been flicking through MS website

  9. #9
    logonui's Avatar
    Join Date
    Jul 2007
    Location
    Brentwood
    Posts
    30
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Would like to learn VBS

    I prefer AutoIT for automations i found it far easier to learn and comes with its own compiler

  10. #10
    altecsole's Avatar
    Join Date
    Jun 2005
    Location
    Morecambe, Lancashire, UK.
    Posts
    281
    Thank Post
    39
    Thanked 36 Times in 26 Posts
    Rep Power
    24

    Re: Would like to learn VBS

    Quote Originally Posted by Diello
    Personally I wouldn't bother learning VBS now, it's been superceded by PowerShell, and will be the foundation scripting lang, command line, and basis for future MS OS's & server apps, as well as working with current versions. Might as well learn the latest stuff.
    If possible, I'd learn them both. Powershell is really the way forward but some things are still easier to knock together using vbscript. For example, try creating a shortcut using Powershell or, as I had to do, changing a shortcut path using a script. You can do this in vbscript, but I couldn't find any way to do it in Powershell. In the end I called some vbscript from within Powershell to do the job. The ability to use vbscript within Powershell is fantastic, but you need to learn some vbscript to make full use of it.

  11. #11

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Would like to learn VBS

    Quote Originally Posted by altecsole
    If possible, I'd learn them both. Powershell is really the way forward but some things are still easier to knock together using vbscript. For example, try creating a shortcut using Powershell or, as I had to do, changing a shortcut path using a script. You can do this in vbscript, but I couldn't find any way to do it in Powershell. In the end I called some vbscript from within Powershell to do the job. The ability to use vbscript within Powershell is fantastic, but you need to learn some vbscript to make full use of it.
    The Wscript.Shell object, which is normally used in VBS for manipulating shorcuts, is also availible in PowerShell
    Code:
    $WshShell = New-Object -ComObject WScript.Shell
    $lnk = $WshShell.CreateShortcut("$Home\Desktop\PSHome.lnk")
    $lnk.TargetPath = $PSHome
    $lnk.Save()
    That example is from the PowerShell user guide, showing how to create a shortcut to the PowerShell application folder.

    The only objects from VBS/WSH that aren't are avaible to PowerShell are Wscript and language specific classes in VBS (e.g. RegXp, Matches, Err, Debug etc.)

    It's still worth learning VBS as PowerShell is unlikely to take over just yet. PowerShell needs a download on all supported platforms apart from maybe Windows Server 2008 and is not supported on Windows 2000. VBS doesn't suffer from these issues.

  12. #12
    altecsole's Avatar
    Join Date
    Jun 2005
    Location
    Morecambe, Lancashire, UK.
    Posts
    281
    Thank Post
    39
    Thanked 36 Times in 26 Posts
    Rep Power
    24

    Re: Would like to learn VBS

    Yes, thanks. Didn't explain myself very well. That's what I had to do. What I meant was that the syntax used in this case is the same as you'd use with vbscript, so learning vbscript too would be an advantage. Like you say, until PowerShell is included as part of the OS there will always be a place for vbscript. In particular, things like startup scripts and logon scripts. PowerShell seems much better with things like WMI, so you pick the most appropriate one for the job (that's what I intend to do).

SHARE:
+ Post New Thread

Similar Threads

  1. RM - WE LEARN
    By danIT in forum Virtual Learning Platforms
    Replies: 11
    Last Post: 31st October 2007, 03:35 PM
  2. Replies: 7
    Last Post: 1st August 2007, 09:47 PM
  3. Where Can I Learn Linux?
    By StewartKnight in forum *nix
    Replies: 7
    Last Post: 22nd August 2005, 11:15 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •