What is the difference between batch script and VBScript?
when we use it give me exact answers with examples?
please help me
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
Ben M
12 years ago
Let me google that for you http://bit.ly/M3CoG0 :)
Comments:
-
Nice!! - J.R. Colby 12 years ago
Posted by:
SMal.tmcc
12 years ago
this link is a good example of a batch and vb script to do the same thing
Posted by:
piyushnasa
12 years ago
Posted by:
jagadeish
12 years ago
Did you see this link?
http://mintywhite.com/software-reviews/customization-software/batfiles/
Posted by:
pjgeutjens
12 years ago
Posted by:
SMal.tmcc
12 years ago
Batch scripts, VBscripts, powershell are just different languages that can be used. You will find you need knowledge of all 3, sometimes one language will attain the same results in one line where a different one will require 20 lines of code.
Think of English and the variations between American and British English.
Comments:
-
here is a 3 line batch file that is not calling DOS, it calls WMIC and a vbscript, the batch file removes a machine from one domain and joins to another domain and then reboots the machine.
start /wait Wmic computersystem where name="%computername%" call unjoindomainorworkgroup
start /wait cscript.exe -b c:\windows\w2d\join_domain.vbs tmccacad.tmcc.edu installer ********* 10.16.19.7
start /wait shutdown -r -t 1 - SMal.tmcc 12 years ago -
This was in reference to another answer, looks like the other guy deleted his post "that Batch files use DOS commands" - SMal.tmcc 12 years ago