Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a file on user's PC

Status
Not open for further replies.

Anthony1312002

Programmer
Mar 4, 2004
146
US
I'm using the script below to create a text file on my C drive and it's working just fine. But the script needs the ability to create this same file on C drive the PC of who ever the user is. This file is used to keep track of Customer volumes such as the number of Image Items, Correspondence and then bill the customer for those items. Does anyone have an idea of how to do this?



Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso_OpenTextFile("C:\rmtcoupld\RMTCOCHM.txt", ForWriting, True)

sql_users2 = "SELECT * FROM qrytblUploadFile Order By Lockbox_Nbr,Tran_Code"

Set rs_users2 = conn.Execute(sql_users2)
conn.Execute sql_users2
 
assuming by as you say on your C drive, you have IIS (or PWS) running locally. The C drive then referenced in your script as used by ASP is the C drive on the server, just as it would be locally, because your local machine is the server.


ASP cannot create files client side! you will need use the WSH.

Search the forums there will be a few threads around.




Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
I've never used WSH before. How could this be used? Are they any examples that you have seen?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top