/build/static/layout/Breadcrumb_cap_w.png

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)

Posted by: Ben M 12 years ago
9th Degree Black Belt
2

Let me google that for you http://bit.ly/M3CoG0 :)


Comments:
Posted by: SMal.tmcc 12 years ago
Red Belt
0

this link is a good example of a batch and vb script to do the same thing

http://www.itninja.com/question/checking-model-of-pc

Posted by: piyushnasa 12 years ago
Red Belt
0

Depends what you want to do, each has its own capabilities and easiness to code.

Posted by: pjgeutjens 12 years ago
Red Belt
0

10 seconds on google:

http://mintywhite.com/software-reviews/customization-software/batfiles/

Posted by: SMal.tmcc 12 years ago
Red Belt
0

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
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ