|
 |
asp_web_howto thread: How to Create text files for every clients, (file generated by sessionid or client name)
Message #1 by "Sharon Huang" <hfsharon@h...> on Fri, 14 Sep 2001 10:05:33
|
|
I need to develop an asp application allow user to input the data into a
HTML form. Then based on the information,
1. create a text file (letter or invoice) specifically for that client.
2. then we allow the user to open the text file (but not other client's
text file).
3. After the client open his text file, we need to delete that file.
We might have thousands clients.
How to create thousands files and allow client only open the file belong
to him? how to delete that file after he open? What's the syntax?
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objLogFile = objFSO.CreateTextFile("Path\xxxxx.txt", True)
if use sessionid to general files or use client name (we get client name
from his input to HTML form) How to fit that in line 2 of the above code?
(I mean file name)
Also, When the the client open the text file, I do not want let client see
the path of the file.
Many thanks!
Message #2 by "Sharon Huang" <hfsharon@h...> on Sat, 15 Sep 2001 19:31:03
|
|
or you have other ideas? not necessary to use sessionid or company name.
Thanks!
> I need to develop an asp application allow user to input the data into a
> HTML form. Then based on the information,
>
> 1. create a text file (letter or invoice) specifically for that client.
>
> 2. then we allow the user to open the text file (but not other client's
> text file).
>
> 3. After the client open his text file, we need to delete that file.
>
> We might have thousands clients.
>
> How to create thousands files and allow client only open the file belong
> to him? how to delete that file after he open? What's the syntax?
>
> Set objFSO = CreateObject("Scripting.FileSystemObject")
>
> Set objLogFile = objFSO.CreateTextFile("Path\xxxxx.txt", True)
>
> if use sessionid to general files or use client name (we get client name
> from his input to HTML form) How to fit that in line 2 of the above
code?
> (I mean file name)
>
> Also, When the the client open the text file, I do not want let client
see
> the path of the file.
>
> Many thanks!
>
>
>
|
|
 |