Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Create a file system object to do the following

i. Create a folder

ii. Create a text file in the folder

iii. Update text file with some tex

Answers were Sorted based on User's Feedback



Create a file system object to do the following i. Create a folder ii. Create a text file in t..

Answer / usha

set fso=createobject("scripting.filesystemobject")

set f= fso.createfolder("C:UserssingarsyDesktopusha")

set file= f.createTextFile("abc.txt",2)

file.write("masdkmas.........")

Is This Answer Correct ?    1 Yes 0 No

Create a file system object to do the following i. Create a folder ii. Create a text file in t..

Answer / saravanan_jasmin

set objF=CreateObject("Scripting.FileSystemObject")
Set objW = WScript.CreateObject("WScript.Shell")
curr = objW.CurrentDirectory
path=curr&"folder"
txtpath=path&" extfile.txt"
objF.CreateFolder(path)
objF.CreateTextFile(txtpath)

set objWrite=objF.OpenTextFile(txtpath,2)
objWrite.Write("someText")

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

How to throw an error in vbscript?

0 Answers  


am giving to one number u can set into that in date format.u can use any methods

1 Answers   HP,


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

0 Answers  


what is the function to get the ascii value of the character?

6 Answers   Netxcell, Oracle,


How to open a file. What is the perpose of true and false mode there?

0 Answers  


What is the difference between a dictionary and an array?

0 Answers  


What are the rules to name variable in vbscript?

0 Answers  


write a qtp script to count the number of minimized windows

1 Answers  


what is the standards used for writing the script in QTP

0 Answers  


Which operator can be used to do an xor operation in vbscript?

0 Answers  


Can u describe what kind of testing are for OTC derivates by banks.

0 Answers   BoA,


How do you declare a variable in vbscript?

0 Answers  


Categories