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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / mudaseer

the above question is total size of d drive and freespace in d drive

Is This Answer Correct ?    2 Yes 0 No

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

Answer / suman

dim x
set x= createobject("Scripting.FileSystemObject")
x.totalsize("c:/)
msgbox x

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More VB Script Interview Questions

what is the function to display current date?

4 Answers  


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

0 Answers   Livetek,


Could Anybody tell me VBScript for Check if a given number is Prime number-Don't use any Built- in Functions Boolean/int is Prime(int number).. Thanks in advance.

12 Answers   Amazon, Pyroferus,


what is extension of the file if its saved from recovery manger to some drive

1 Answers  


What are the uses of vb script?

0 Answers  






how to organize files in object repository of qtp

1 Answers  


Why to use option explicit in vb script?

0 Answers  


How are comments handled in the vbscript language?

0 Answers  


write a Vb script to find a whther a selected drive exits.

1 Answers   CTS,


What are the differences between Visual Basic, VBA and VBScript? When would it be appropriate to use one as opposed to another?

1 Answers   Infosys,


accept an email id & validate it .email id should not exceed 25 characters the mail id should contain 3 characters excluding domain name,@ and .(dot) the last 3 characters of the domain should be net,com or org

2 Answers  


what is the features of visual basic?

0 Answers  


Categories