Re: Is vbscript appropriate tool?
- From: "Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Mar 2008 17:54:16 -0600
<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.
======
That is certainly an admirable attitude. But it reminds me of the old
saying: "learn from the mistakes of others because you'll never have enough
time to make them all yourself".
I have been using vbscript for a number of years now, and often surprise
myself to find out the actual cause when a script doesn't seem to quite work
properly. Some of the "gotcha's" can be very subtle, and many are not well
explained by the documents. If you ask the odd question about these things
by posting a bit of code, you can often save yourself a lot of anguish, and
learn a fair bit at the same time. Don't ever worry that, by doing this, you
will run out of problems the solving of which will be a learning experience
;-)
/Al
.
- Follow-Ups:
- Re: Is vbscript appropriate tool?
- From: mirandacascade
- Re: Is vbscript appropriate tool?
- References:
- Is vbscript appropriate tool?
- From: mirandacascade
- Re: Is vbscript appropriate tool?
- From: Pegasus \(MVP\)
- Re: Is vbscript appropriate tool?
- From: mirandacascade
- Is vbscript appropriate tool?
- Prev by Date: Re: Is vbscript appropriate tool?
- Next by Date: Re: Absolute and Relative Paths
- Previous by thread: Re: Is vbscript appropriate tool?
- Next by thread: Re: Is vbscript appropriate tool?
- Index(es):
Relevant Pages
|