write a vb script to find the size of d drive?

Answer Posted / mudaseer

dim vfso,vdr
vdr="d:\"
set vfso=createobject("scripting.filesystemobject")
set vdr=vfso.getdrive(vdr)
msgbox vdr.totalsize/(1024*1024*1024)
msgbox vdr.freespace/(1024*1024*1024)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of operators are available in the vbscript language?

535


Which constant is used for print and display functions and works as same as pressing enter key?

524


what is the object hyrarchy in QTP for a web based application

1881


Explain the adodb.stream class?

545


Mention what is variant in vbscript?

552






hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

1787


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1738


How you can call vbscript functions?

577


Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

1568


What are the advantages of vbscript?

644


What are the special sub-types in vbscript?

546


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1413


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

532


why do u choose to go for testing why cant for devoloping

1588


How to add actions in driver script to run those actions in QTP?

1516