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 are values assigned to the variables in the vbscript language?

579


What is difference between vbscript and vba?

612


What is the event handling in vbscript?

565


how does vb script help in web page designing? explain with example.

1590


How to create a function in vbscript?

590






How to access array data?

545


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1853


What are the environments supported by vbscript language?

508


Explain about the functionality of vb script?

576


Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards

2264


about vb scripting programs this type of all question& answers

1697


what do you mean .ota mobile format

1949


If else for do while select in vb script?

645


Explain about the support of asp for vb script functionality?

532


Explain about filter expression?

569