Page 1 of 1
vbscript vs dos
Posted: 08 Jan 2010 13:54
by sxekjb
I know this is discussed in a multipage thread argument, but can someone give me the pros and cons of both and include a scenario. In other words what makes vbscript more powerful than using a dos batch.
Posted: 10 Jan 2010 15:08
by ENU_USER*.*
I use both , .vbs seems to execute a lot faster only drawback with
using vbs than I have experienced is that some of my viurs and spyware apps give a false-postive alert (MS Essentials etc.) if i leave the vbs script on my harddrive so i usually just auto-delete it when done...

Posted: 11 Jan 2010 14:09
by sxekjb
Thanks for your response. As far as I can see I can do everything vbscript can do with command prompt. If anyone has any examples to give as to why some scripts are preferred to be written in vbscript I'd like to see it.
Posted: 11 Jan 2010 16:41
by avery_larry
Well -- vbscript is an actual scripting language. I think very few people indeed would venture to call DOS a scripting language -- though obviously you can do some scripting.
Posted: 16 Jan 2010 04:49
by alan_b
Example where DOS cannot work :-
I needed to know the time interval between the modifications of several files.
The DOS command DIR gave me date and hours and minutes, but no seconds.
I had to use VB script to get the time resolved down to 1 second.
N.B. If I only need a time resolution down to 1 minute,
then DOS DIR will give an instant answer,
whilst VBscript takes a couple of seconds to launch.
Alan