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

I'm new to QTP, i facing a a problem in the script says"Object not found", "Browser("").page("").frame(Name:=fminfo).webtable(). the issue is, QTp is not able to identify the web table in run time.becuase in that fram"fminfo" there are "n"table and the table do not have the names,Html id. 1) i need to count the number webtables available on that page. 2)need to identify the webtable cell values. 3)How Loop the once i get the count and retrive the cell data of each webtable? Can anyone help on this, plz.. Thanks, Suresh

3 Answers  


Difference between Function and Sub routine?

0 Answers   Polaris,


What is the main difference between function and sub-procedure?

0 Answers  


What is a class in CSS?

1 Answers  


generic function for webedit box for web application

1 Answers  






what is fire event method in qtp?

3 Answers   TCS,


write a vbscrpit to swap values

2 Answers   Adani,


When does ‘on click of button’ event gets triggered in the vbscript language?

0 Answers  


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,


How will you get a string with the specified character the specified number of times in vbscript?

0 Answers  


How you can call vbscript functions?

0 Answers  


accept a string & display whether a is present or not

1 Answers  


Categories