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

Mention how to create a cookie using vbscript?

0 Answers  


What is loose binding? Why is it not a good practice to use it?

0 Answers  


when we use filter funtiom invb script(QTP)

0 Answers   TCS,


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

0 Answers  


which is the good software training centre in bangalore?

1 Answers  






Hi, Anybody could tell me What is the script for Reverse of Given number. Ex:236--632. Thanks in Advance..

10 Answers   Amazon, CSC,


What is the use of option explicit statement?

0 Answers  


write a program to display configuration of a local system with the help of vb script.

0 Answers  


How to use Text file (Notepad) as ur data source in QTP? Can u please provide some function code for it?

1 Answers  


how to operate webobjects in a webpage using getobject function and then using generic methods?

0 Answers  


I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

0 Answers  


Difference between Function and Sub routine?

0 Answers   Polaris,


Categories