vbscript vs dos
Moderator: DosItHelp
vbscript vs dos
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.
-
- Posts: 5
- Joined: 10 Jan 2010 14:57
- Location: U.S FL.
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
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
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