My asp code is dumping the contents of a db file into a word doc and
then creates a file on the web root directory per code below.
Problems I am running are:
1, If I created a field name called filename on the db specifically to be the name of doc file being create.
I then hardcoded the value for this field.
The whole idea is when this file is created on a folder, it will have that name like notify.doc
When I run this one line of code below, I get the error permission denied.
file_being_created= rs("filename") & ".doc"
Microsoft VBScript runtime (0x800A0046)
I don't know why because code below should overwrite a doc file if it already exists.
Set act = fso.CreateTextFile(server.mappath(file_being_created), true)
The other error occurs when I change file_being_created to autonumber on the db.
If I change the file_being_cr
file_being_created= rs("ID") & ".doc"
The system cannot find the file specified.
Set .Configuration = iConf
.From = "web Admin <domain.com>"
.To = "domain.com"
.Sender = "web Admin <domain.com>"
.Subject = "New Information"
.TextBody = "Attached is a word document added to the database. "
Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update.
The Original Issue
This was written…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email
Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…