Home All Groups Group Topic Archive Search About


Author
16 Mar 2007 8:48 AM
Miztiik
i am new to scripting..i want to know which way to script is better
windows batch scripting in DOS or
VBScripting?

Author
16 Mar 2007 10:38 AM
Nick Domukhovsky
Miztiik пишет:
> i am new to scripting..i want to know which way to script is better
> windows batch scripting in DOS or
> VBScripting?
cmd shell is less functional, then VBScript. Also you can consider use
of third-party scripting languages, like Perl.



--
With best regards
Nickolay Domukhovsky, MCSA
Author
16 Mar 2007 12:09 PM
Miztiik
Then in  that case i will pursue my learning in vbscripting.

any pointers to helpful resources will be appreciated
Author
17 Mar 2007 4:45 AM
Edward Ang
i always find the Script Center to be useful ->
http://www.microsoft.com/technet/scriptcenter/default.mspx

Show quote
"Miztiik" <Mizt***@discussions.microsoft.com> wrote in message
news:D88F067B-D773-45F9-8457-551C394E5DC4@microsoft.com...
> Then in  that case i will pursue my learning in vbscripting.
>
> any pointers to helpful resources will be appreciated
Author
19 Mar 2007 6:32 AM
bg
Show quote
On Mar 16, 11:45 pm, "Edward Ang" <edward.***@hp.com> wrote:
> i always find the Script Center to be useful ->http://www.microsoft.com/technet/scriptcenter/default.mspx
>
> "Miztiik" <Mizt***@discussions.microsoft.com> wrote in message
>
> news:D88F067B-D773-45F9-8457-551C394E5DC4@microsoft.com...
>
>
>
> > Then in  that case i will pursue my learning in vbscripting.
>
> > any pointers to helpful resources will be appreciated- Hide quoted text -
>
> - Show quoted text -

PowerShell is the next generation scripting language for Windows.

http://msdn2.microsoft.com/en-us/library/ms714418.aspx
Author
17 Mar 2007 4:46 AM
Edward Ang
i always find the Script Center to be useful ->
http://www.microsoft.com/technet/scriptcenter/default.mspx

Show quote
"Miztiik" <Mizt***@discussions.microsoft.com> wrote in message
news:D88F067B-D773-45F9-8457-551C394E5DC4@microsoft.com...
> Then in  that case i will pursue my learning in vbscripting.
>
> any pointers to helpful resources will be appreciated
Author
16 Mar 2007 4:55 PM
Richard Mueller [MVP]
Miztiik wrote:

>i am new to scripting..i want to know which way to script is better
> windows batch scripting in DOS or
> VBScripting?

As indicated, VBScript is the most powerful. In the future it will make
sense to use PowerShell, which is even more powerful. When it becomes more
available, it will be the language of choice. However, I think VBScript will
always be supported.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
Author
16 Mar 2007 7:33 PM
Steven
DOS scripting: simple but limited, great for scripting anything that you
could otherwise type from the command line (batch files), limited to the
standard shell and batch commands (rename, copy, if, echo, ...etc)

VBscript (recommended): powerful but more complicated, can interact with
WMI, services and Active Directory, can make system changes, can be used
remotely (interact with other Windows PC's), usually doesn't require
additional software or tools to be present (built-in), runs on all 32 bit
versions of windows (NT support is a bit limited though I think).

3rd party: includes other languages (Perl, CGI, PHP, Java, etc), usually
requires additional software to be installed (runtime engines, etc).  If you
need to support multiple platforms (Windows and linux for example), these
'may' give you the ability to write one script that works on all platforms
with a bit of effort.  effectively you become a programmer at this level.
Can be extremely powerful.

PowerShell: not certain but may not be available for previous versions of
Windows (Vista for certain, maybe XP-Pro or Server2003, probably not 2000).
If you don't need to support older clients you might as well start learning
this alongside VBscript as I'm sure microsoft will start flogging this as
next best thing since sliced bread before long.  I am not familiar with
PowerShell yet so I cannot give an educated opinion on it.

Bottom Line (Personal opinion): Use shell (DOS) scripting for simple or
repetitive tasks you can otherwise perform from the command prompt or
explorer, use VBscript for everything else


Show quote
"Richard Mueller [MVP]" <rlmueller-nospam@ameritech.nospam.net> wrote in
message news:uPiTJw%23ZHHA.3612@TK2MSFTNGP04.phx.gbl...
> Miztiik wrote:
>
>>i am new to scripting..i want to know which way to script is better
>> windows batch scripting in DOS or
>> VBScripting?
>
> As indicated, VBScript is the most powerful. In the future it will make
> sense to use PowerShell, which is even more powerful. When it becomes more
> available, it will be the language of choice. However, I think VBScript
> will always be supported.
>
> --
> Richard Mueller
> Microsoft MVP Scripting and ADSI
> Hilltop Lab - http://www.rlmueller.net
> --
>
>

AddThis Social Bookmark Button