This video introduces the topic. Click the Cc button to see subtitles in English. See tutorial 2 at https://youtu.be/Wd344ElH_Yg
Follow me on:
Website: http://inderpsingh.blogspot.com/
Google+: https://plus.google.com/+InderPSingh
Twitter: https://twitter.com/inder_p_singh
Amazon Auto Links: No products found.
Very good tutorial. Your explanation is good and clear.
great video..
question: why you need to use & vbCrLf?
what if we don’t put that in script
Thank you sir, Now i understand what is the use of option explicit . For remaining your sessions where i get it
Can you use windows vbscript for testing tool called QTP?
Hello,
I would like to login with Putty in multiple devices (cisco devices) and run some command. I tried to google some code but did not find any good option. Problem is that sendkey does not work with Putty tool
my task is as follow.
1. login to device using putty.
2.enter username
3.enter password
3.run my commands
This tutorial has been very helpful. Thanks!
Great video! I’ve been struggling through a scripting book trying to pick this stuff up, but you made this easy to follow along with. Thanks!
what does the “Dim” function do?
This has helped a lot . Thank you sir !
This is very nicely explained. You are a very good teacher sir. Very helpful videos. Thank You!
Nicely explained
I absolutely love this first tutorial, except I actually edited a few things to improve upon this simple code…
Option Explicit
Dim firstNumber
firstNumber = InputBox(“Please enter a number to add:”,”First Number”)
if firstNumber = Empty Then
MsgBox “Invalid Input”
WScript.Quit
End if
firstNumber = Cint(firstNumber)
Dim secondNumber
secondNumber = InputBox(“Please eneter a number to add:” & vbCrLf & “To the previous input…”,”Second Number”,0)
Dim sum
Sum = firstNumber + secondNumber
MsgBox “Your Sum is ” & sum
I added an If-Then statement so if you input an empty character for “First Number” you received an invalid input MsgBox instead of just a runtime error.
Thanks!
finally tutorial i can understand, thanks, keep on pls
Awesome Sir!!!! i am amazed by watching only part 1…no one explained me how we define a variable which u did simply!!! thanks
My job requires programming in Classic ASP. I am still learning Classic ASP, and this video series about VBScript will help me tremendously. Thank you for taking the time to produce these VBScript videos. I look forward to viewing more.
Your Explanation is very very clear
Awesome Explanation…Thank you sir
good
Can you pls help me….I have saved the file as sum.vbs.and when iam trying to execute by double clicking on that…it is launching the Internet Explorer browser….Iam not able to view the output…wht could be the solution for this…?
Very good video and easy to understand. I think I’m starting now to understand better why to use Dim
very good explanation. Easily understandable thank you so much
Clear and precise explanation. Thank you.
lol=msgbox (“Very well explained. ” & vbCrLf & “We need more teachers like you :-)” , 20, “Thank you”)
when im searching for online tutorials on programming i am always worried, because if it’s too boring i lose the will to continue. This happened to me when trying to learn Ruby. I am soooo happy i found this video series it is amazing, THANK YOU FOR AMAZING AND AWESOME TUTORIALS!! 🙂
Processing box should be a non-rectangular parallelogram
why is everyone indian in the comment section
when i open my pc then show a notification microsoft VBScript runtime error..
how can i solve this problem . plz help….
This is one of the best video series to learn VB Scripting. Presentations and explanations are very good.
nice
By far the best Video series to learn VBScript.
Nice Explanation Sir, the way u have explained the things here are soo easy to understand. I’ve watched ur vedios for the first time today but nw i’ll be a regular follower of ur videos plz continue ur grt work..I really appreciate ur Teachings ! Best Wishes !
awesome tutorials….i used to watch all ur tutorials they are very useful..very clean explanation…thank you
Thanks for teaching me this! It is very handy for making your own programs.. I watched all of your videos on vbscript and I made my own calculator that can execute all basic operations!!
Option Explicit
On Error Resume Next
Dim Operation,num1,num2
Operation = InputBox(“What operation would you like to execute?”,”Operation”)
num1 = InputBox(“Enter the first number”,”First Number”)
num1 = CInt(num1)
num2 = InputBox(“Enter the second number”,”Second Number”)
num2 = CInt(num2)
‘If block starts
If Operation = LCase(“Addition”) Then
Call Add
Elseif Operation = LCase(“Subtraction”) Then
Call Subtract
Elseif Operation = LCase(“Multiplication”) Then
Call Multiply
Elseif Operation = LCase(“Division”) Then
Call Divide
End If
‘If block ends
‘Sum
Dim sum,difference,product,quotient
Sub Add
sum = num1 + num2
X=MsgBox(“The sum of ” & num1 & ” and ” & num2 & ” is ” & sum & “.”,vbOK,”Sum”)
End Sub
‘Difference
Sub Subtract
difference = num1 – num2
X=MsgBox(“The difference of ” & num1 & ” and ” & num2 & ” is ” & difference & “.”,vbOK,”Difference”)
End Sub
‘Product
Sub Multiply
product = num1 * num2
X=MsgBox(“The product of ” & num1 & ” and ” & num2 & ” is ” & product & “.”,vbOK,”Product”)
End Sub
‘Quotient
Sub Divide
quotient = num1 / num2
X=MsgBox(“The quotient of ” & num1 & ” and ” & num2 & ” is ” & quotient & “.”,vbOK,”Quotient”)
End Sub
Thank you for these videos. Gotta start preparing for my software testing internship in 4 months xD
thank u sir, for explaining so well the option explicit concept.i have learnt something new.
can you show how to set up notepad++ to run vbs .How to execute the files.
sir your explanation is good and clear
Option Explicit
Dim firstNumber
firstNumber = InputBox(“Gib die erste Zahl ein:”,”Erste Nummer”)
firstNumber = Cint(firstNumber)
Dim secondNumber
secondNumber = Cint(InputBox(“Gib die zweite Zahl ein”& vbCrLf &”die zur Summe addiert werden soll”,”Zweite Zahl”,0))
Dim sum
sum = FirstNumber + SecondNumber
Dim Stimme
set Stimme=Createobject(“sapi.spvoice”)
Stimme.speak (firstNumber & “+” & secondNumber & “=” & sum)
MsgBox “Die Summe ist ” & sum
Speaking Calculator 😀
hindi me chiye sir
So… reserve or “dim” the variable… and the variable is the sum… so… Dim Sum?
Very clear and smooth explanation. Thanks Sir
very helpful.. thanku sir
I have one question to ask. we are using firstNumber and secondNumber on line 5 and 8 respectively but at line no.11 we are
adding the Sum= FirstNumber + SecondNumber. So, does that mean VBscript do not care for small or capital letters??
This is the best VB Scripting tutorial for beginners. Thank you!
Hi,
Can you please tell me how can i generate XML file using VBscript.
I need to take the values dynamically
awesome