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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scripting.filesystemobject

Status
Not open for further replies.

guestAsh

Technical User
Feb 27, 2004
65
GB
Hi - I’m not sure if this is the best way of doing this, so I’m looking for some advise.

This is what I want to do:

1. I need to write to a HTML file using scripting.filesystemobject

2. Then attach it and send it using CDO.Message.

The file will only be temporary, but I need to basically use the same file over again (i don't want to run the risk of creating a file and then deleting it, then finding out at a later date that the file wasn't deleted, and end up with a load file and crashing the web server.)

So my worry is what happens if say 2 users access the page at exactly the same time. Does the file get "locked out" until the file has been written to?

Do I need to write some form of session object so that only one person can view that page at one time?


 
Code:
So my worry is what happens if say 2 users access the page at exactly the same time

No such thing as the "exact same time" --> maybe to the second, but computers deal in milli/mico/nano seconds and I wouldn't worry too much about two or more users hitting a script at 100% exactly the same time...it won't happen.



--------
GOOGLE is a great resource to find answers to questions like "how do i..."

If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top