Dear Inder, I changed the name of the computer as you commented in the begining of the script (line 7), and I changed the path+file (line 10), but executing this script, I had this error: Line: 14 Charct.: 3 Error: Invalid use of Null: 'Round' Code: 800A005E Could you help me?
@QA1
9 жыл бұрын
João Vitor Eifert Dear João, I see that your question is regarding the DiskSizes.vbs example script. The error seems to indicate that objDrive object is null on line 14. The objDrive object comes from the objHardDisks collection. Therefore, my suggestion is to verify if the query on line 8 is correct for your specific computer. Other things seem okay. Thank you.
@pittuvenkatreddy8599
Жыл бұрын
Hi is there any way to skip one iteration and then continue in VBScript
@QA1
Жыл бұрын
Hi, you can use a label or put the code you want to execute the remaining times within an If statement (view kzitem.info/news/bejne/r59_13mCgox4gZw) or you can break the For Loop by using Exit For statement e.g. If i = 3 Then Exit For
@karthickrajssm
8 жыл бұрын
Hi Thanks for the explanation can you please explain me more about the arguments how and createobjects how it is referred.
@QA1
8 жыл бұрын
+Karthick Raj Thank you for your question. CreateObject has one argument, which is the class name of the application that we want to invoke. We need to know this class name in advance. For example, Set browser = CreateObject("InternetExplorer.Application") or Set objExcelApp = CreateObject("Excel.Application") You can see my other examples in my VBScript tutorial 6 at kzitem.info/news/bejne/xH98tYKrjH15ZIY
@karthickrajssm
8 жыл бұрын
+Software and Testing Training thanks a lot
@Legendkiller99
9 жыл бұрын
Dim m,n as integer m=20 , n=6 for n=6 to 20 step 2 m=m+3 next what will be the value of the variables (m) and (n) after the execution of the following code? Can you tell me please????
@QA1
9 жыл бұрын
Karkar Momo The easiest way to find out the values is to actually run the VBScript. The values should be m=44 (it starts with 20 and is incremented 8 times by 3) and n= 22 because it increments by 2 after its final value in the for loop. This can be found by including msgbox statements after the code. Thank you.
@Legendkiller99
9 жыл бұрын
Software and Testing Training thank you very much
@sariam62
3 жыл бұрын
How to loop a temp table in vbscript
@QA1
3 жыл бұрын
In order to learn how to loop through database tables, please view my VBScript Tutorial at kzitem.info/news/bejne/zKSntntrhHafano
Пікірлер: 14