I believe you would need to use the filesystem object, fairly sure you cant to it the way you have illustrated.
;;on clicking this link i want to download a sql query into text file
do you mean the results of the query into a text file
;;and then open in Macromedia Dreamweaver
I'm sure you have a good reason for opening a text file in DW, this is where you lost me. There is allot of working examples in google, go here and try one of the many.
You need something like:
-----------------------
Set FileSysObject = CreateObject("scripting.filesystemobject")
Set MyFile = FileSysObject.createtextfile("c:\text.txt", True)
Open your DB HERE
MyFile.Write DataString 'Put watever you want in the file here.
MyFile.Close
--------------------------
Wind is your friend
Matt
|