Search here for all the info you want in this Blog

VBScript Examples


1) write a program to display hello world
2) write a program to display the subdatatype of a variable
3) write a program to read a value as user input and display its subdatatype
4) write a program to read two values as user input and add them then print the value
5) write a program to read two values and print the cancatinated values
6) write a program to display the vbscript version
7) write a program to display greatest of two numbers
8) write a program to display greatest of three numbers
8) write a program to accept input as numbers from 1 to 10 and display them in words by using select case
9) write a program to accept input as numbers from 1 to 1000 and display them in words by using select case
10) write a program to print numbers from 1 to 10 using for loop
11) write a program to print even numbers starting from 2 to 20
12) write a program to print odd numbers starting from 1 to 20
13) write a program to print numbers from 10 to 0
14) write a program to print the following

*
* *
* * *
* * * *

      *
    * *
  * * *
* * * *



    *
   * *
  * * *
 * * * *



15) write a program to assign and print array elements using forloop and input box
16) write a program to assign 0 to 10 in to a dynamic array
17) write a function to retrun adition of two numbers
18) write a function to add two arrays
19) reverse of a string with out using strrev function
20) write a program to compare two strings
21) write a function to verify whether a given string is a palindrome or not
22) write a program to search string in another string.
23) write a program to reverse a scentance with out reversing the words in it.
24) write a program to make the first char of all the words in scenense to Ucase
25) write a program to execute a command in command prompt
26) write a program to create a text file and write some text into that file
27) write a program to append some text to a file
28) write a program ro read 10th line in a file
28) write a prigram with all combination of fso
first create file and close it
open it in write mode and write some text, close it
open it is read mode and read the test and print it, close it
open it in append mode and write soem text, close it
open it is read mode and read the test and print it, close it
take a backup of the file
delete the original file
verify whether the file is deleted or not

29) write a program to compare two arrays
30) write a program to compare two strings without using strcomp function
31) write a program to search for an element in an array
32) write a program to sort an array in assending order
33) write a program to sort an array in descinding order
34) write a program to print first 50 prime numbers
35) write a program to print highest prime number below a given number
36) write a program to print smallest number in an array
37) write a program to print greatest number in an array
38) write a program to search for a file in a folder
39) write a program to connect to database and execute a query and print the result
40) write a program to print first 10 fibinocii numbers
41) write a program to connect to database and query the database using VBscript

2 comments: