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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2285


How do you declare a variable in vbscript?

1020


When are redim statement and preserve keyword used in the vbscript language?

984


Explain the scope of the variables using dim, public, and private keywords respectively.

1099


what is the standards used for writing the script in QTP

2270


Which object provide information about a single runtime error in a vbscript?

1010


Explain the filter expression?

1036


Mention what is the use of option explicit in vbscript?

917


Mention what is vbscript?

1052


Explain about operator precedence in vb script?

1013


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

1933


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

1018


Difference between dim,public and private variables in vb script?

900


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

2070


What is the difference between VBScript and JavaScript?

2627