Re: Is vbscript appropriate tool?




<mirandacascade@xxxxxxxxx> wrote in message
news:a6ad5b4e-c819-4285-8ffe-e4a9dd1b0e06@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mar 29, 9:44 am, "Pegasus \(MVP\)" <I....@xxxxxxxxxx> wrote:
You can use VB Scripts or batch files for all of the above tasks.
VB Scripts are more powerful but require far more coding for
everyday tasks than batch files, and therefore more design,
debugging and maintenance time. It is not unusual for a VB
script to require 30 lines of code to perform a task that can
be performed with a single line of batch code. However, batch
files leave a lot to be desired when it comes to advanced stuff.

The problems you refer to have nothing to do with the tools
you use. If you post your relevant code fragments then someone
will tell you what's wrong with them.- Hide quoted text -

1) Thank you for the reply...I appreciate the quick compare-and-
contrast of using vbscript versus batch files for tasks such as the
one I described.

2) The subtext of what I read seemed to be, "You should be able to do
what you described in vbscript...be aware that a batch file solution
may be simpler for this particular case." Given that, I think it
would be more helpful/instructive for me to work through the errors
I'm encountering on my own...I'll probably learn a lot more that way.

3) I am, however, still curious about reference material.
Specifically, is there good reference material that concentrates on
how to use vbscript for type of folder/file tasks described in the
original post? I see lots of reference material on vbscript, but much
of it seems to concentrate on how to use vbscript for web
programming...my interest is much more narrow than that.

Regards,

Miranda

================

You could download the "Hey Scripting Guy" archive - it contains
actual scripting examples for just about all the basic functions.
http://www.microsoft.com/downloads/details.aspx?FamilyID=5f5e0bda-923a-4744-8289-afb73f6a5ed8&displaylang=en

The VB Scripting help file script56.chm is another invaluable
resource for the basic stuff.


.



Relevant Pages

  • Re: scripting vs. batch files?
    ... >| I've been using batch files for ages, ... >| client was Windows 2000 or Windows XP. ... >| Can you incorporate scripting syntax in a batch file or should I stop using ...
    (microsoft.public.windows.server.scripting)
  • RE: Tutorial on Batch files and scripting
    ... A much better explanation is the recommendation to use the Windows Scripting ... Host to create VBScript or JavaScript utilities instead of Batch files to ...
    (Security-Basics)
  • Re: Network Timeout in Script
    ... > scripting, more batch files. ... The client machine list is editable and pulled from ... > Is there anyway I can change this default timeout for network connections to ...
    (microsoft.public.windows.server.scripting)
  • Re: scripting vs. batch files?
    ... | I've been using batch files for ages, ... | Can you incorporate scripting syntax in a batch file or should I stop using ... are even macros in Kixtart to directly determine the OS without querying the Registry. ...
    (microsoft.public.windows.server.scripting)
  • Re: DOS .... Command Prompt ..... Batch Files
    ... > The popular scripting languages are VBscript, ADSI, WMI,WSH, ETC. ... VBScript is a scripting language, but the other three are not. ... > * How useful is it to be able to write batch files and run them from the ...
    (microsoft.public.win2000.cmdprompt.admin)