write a vb script to find the size of d drive?
Answers were Sorted based on User's Feedback
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 |
Answer / mudaseer
the above question is total size of d drive and freespace in d drive
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / suman
dim x
set x= createobject("Scripting.FileSystemObject")
x.totalsize("c:/)
msgbox x
| Is This Answer Correct ? | 0 Yes | 1 No |
What if you do not specify anything when you call a procedure?
What are class events?
Mention what if you do not specify anything when you call a procedure?
Which command is used for writing text on a page?
int a=4857 i need output as 7584.without using any inbuild function?
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
how to check whether link is disabled in QTP??
why do u choose to go for testing why cant for devoloping
How to write VB script for login module?
write a program to display configuration of a local system with the help of vb script.
Can anybody code this problem for me in VB script - Create an array of 4 elements, increase its size to 7 elements and then find out which of the elements are prime (use functions)
I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30