IIS Delete/write Text File Permissions
ive set the permissions to the folder which the text file is in to 'Write' and 'Read', but i still continue to get:
[/CODE]
Microsoft VBScript runtime error '800a0046'
Permission denied
/modules/admin/program.asp, line 197
[/CODE]
all the path leading to the file is set to allow write aswell.... any ideas why this might be happening?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Delete Line From Text File
if I had a form using the input textboxes using username and password. how do I use the .asp language to remove the line from a .txt using the following format: username<space>password
Delete A Line In Text File Or From An Array
I have an Access DB with newsletter preferences in it. What I am trying to do is select small groups to send a custom newsletter out to. So my localhost criteria web page goes to the Access DB and pulls the email addresses that match my current criteria. I then write that list out to a file (newsletterlist.txt). Maybe that is my problem, but I wanted to do that so if my machine crashed while processing, I would know where to recover it. I had looked at arrays and dictionaries but dictionaries aren't good from what I found for hundreds of entries and arrays I can't keep track of..argh. Anyways, I then wanted to loop through the file (newsletter.txt) find the next email address, with it I can query back to the DB and get preferences and assemble the email and out the custom newsletter goes. I've seen where MS says deleting a line using the FileSystemObject is not possible, though wanted to see if anyone has found a work around. Performance isn't that much of an issue for me, as I figured I'd set the thing to running and go to dinner! So anyone have suggestions - even if it means taking the text info to an array, somehow delete one of the addresses and then put it back to a file...anything that can one by one delete the addresses so I know that it all has worked as there would be no email addresses left in the file.
Write To Text File
Client said "Yea, our current host does PHP and all that" and of course they don't. I know PHP, so hopefully it is somewhat similar to ASP. Anyway...I want to know how to take information from an HTML form and write the info to a text file. It is going to be *very* basic as I only need to write one line to the text file. It is just so the client can type in the monthly loan rate, or something like that, and save that info to a text file. Then, show the text file on all the pages.
Read/Write To A Text File In ASP
I am working on a safetywear deduction system and i need to perform the following functions: write to a text file and read from a test file and wrute to a table in the database. I need code to write and read to a text file in asp please.
Capture Rendered ASP And Write To A Text File
Greetings- <br><br>I have a site that is kind of a portal site- many sites within a single site. Users of the site must use a single logon page that redirects the user to a predetermined "subsite". Each "subsite" has a few different session variables that are used in varying ways to display information germaine to that user. <br><br>My customer (the portal owner) wants users to be able to render any page on the site to a .PDF that is then sent via email to the user. I can render an HTML file to PDF via a .COM object, but the problem is that I cannot figure out how to render the .ASP page to HTML. My initial thought was to use MSXMLHTTP to GET the page, but when I do this, the GET method always returns the logon page. <br><br>What I'd like to do is have a link to a processor page that just "captures" the HTML as it's sent to the browser and writes it to a static HTML file, which I can then easily turn into a PDF. Anyone have any ideas?
Write Unicode Data From SQL To Text File
I have a problem DB:SQL Server Field type is varchar and some data is unicode like this "•õ" It is a chinese. How do I transfer the data I retrive from DB and then I can write it into an text file with its proper chinese word using FileSystemObject. Or any other way ?
Network Persmissions Write To Text File
I have an asp page that writes to a text file. Can someone tell me what the correct permissions should be on the network - so it's safe from various users coming in to manipulate any files?
Write To Text File In Password Protected Directory
I have a form mail script that sends an email and then writes to a text file using Server.CreateObject("Scripting.FileSystemObject"). The problem I am having is that the information needs to be saved in a Password Protected Directory. When I try to save the info it gives me a permission denied error. I had my hosting company change the permission on the directory and the script was working ok but now it isn't. Is there a way to pass the username and password in the script so I don't have to worry about the hosting company messing this up?
Write Information Form A Comma Separated Text File Onto An ASP Pag
I have a text file that has two lines in it, the first line gives item labels, my second line gives values for those labels. I would like to use ASP to present this data on a web page. I also want the page to reload every 10 seconds so that any updates to the text file would be relfected on the web page.
How Set DB Directory Permissions To Allow Write?
I previously used PWS on Win 98. Nothing special had to be done locally for a directory that contained an Access database. But on the Web host I had to do this: Access Permissions | [Go to proper folder] | Anonymous account given permission of Change Now I've just gotten a PC with Win XP Pro and have just installed IIS. My development Web sites work fine locally except whenever the ASP page tries to write data to the database, then there is an error message at the line that first tries to write data. What can I do to modify my settings? I read something about NTFS, but my PC's drive is not set up with that. Is NTFS something that I need or is there hopefully another solution?
Write Permissions For Database
trying to set up my first windows hosted site with database i have a folder db with my database and i'm using macromedia can i use macromedia to set write permissions for this directory?
Write Permissions And Security
we're working on a cms system that allows the admin to upload files to the server - the host (supplied by the client) says that opening write permissions means that windows is open to exploits. we're using FSO to move the file anyone know a way of locking down this so its not 'open to exploits' ?
Write Permissions Using Scripting.TextStream Object
In Windows 2000 I need permissions set so that I can write a text file to the folder when the asp page is loaded. Right now I have only these permissions set: Administrator: Full System: Full Everyone: Read and Execute, List, Read Network: Read and Execute. List. Read Is there some other "user" that I can give permissions to to write a text file to the folder that doesn't allow write permissions to IUSER_MachineName?
Calling All Robots On Read/write Permissions
i need to set read/write persmissions on an Access DB, can access IIS folder permissions -> not alleviating issues can't access explorer security -> why is this? ad infinitum require UPDATE operation on access DB, this erroring out with : Operation must use an updateable query.
Re Setting File Permissions...
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company 1&1 with only limited server configuration via a web based control panel. My query relates to the ASP security model and how it relates to FrontPage options for setting file access on a database file. If you know of any online documentation covering the following issues I would be grateful for links to it. For various reasons (session logging, synchronising data with a master database etc) I need to be able to write data to the database file. Essentially the problem is this: how do I make this possible without giving public access to the database file? Code:
Setting File Permissions Via ASP
Is it possiable via a ASP to set (NTFS) permissions on files not on the IIS server?I'm sticking together an ASP to create our new user Home/Profile dir file structure. The script is running in anonymous user mode using an account which has full perm on the file severers. It's creating the file structure OK, but when it comes to the file permissions, CALCS direct or CACLS in a .CMD doesn't appear to be able to set ther permissions when invoked from the ASP. It does however work for the user when logged on the server's local console.
Delete Specified Text
Meaning files with a .asp file extension, not a .txt file extension. Can this be done?
How Do I Use ASP To Download A File That Has Particular Ntfs Permissions
I'm trying to write a script that will allow validated users to download a file that has specific ntfs permissions. Here's a summary: Scenario: 1) The name of the file is "binary.zip". 2) I've created a local account on the server called "dl_user". 3) dl_user is the only account that has permissions on binary.zip. 4) I've written a script that validates several people to access a web page that has a link to binary.zip. However whenever they click it, they get prompted for a username and pw. If they enter the "dl_user" credentials, it works. Problem: I don't want these people to be prompted for the username and pw. Instead, I'd like IIS, through some ASP mechanism, to pass the dl_user credentials in the background so that the users are completely unaware of the account that has NTFS permissions to the file. Is there any way to do this?
Setting File/Folder Permissions
I am trying to use this bit of code to change the permissions on a file. Apparently it should work but it isn't. I am getting no error messages just nothing is happening. The path to the file is definitley correct. Does anyone have any idea what I am doing wrong? Code: <% strFileOrFolder = "D:WebRoothtdocsProjects est.txt" strUserName = "Everyone" dim objWSH set objWSH = CreateObject("WScript.Shell") Call objWSH.Run("cmd /c echo y| CACLS " & strFileOrFolder & " /G /T " & trim(strUserName) & ":f", 0, True) set objWSH = Nothing %>
Access Database File Permissions
I am methodically working my way through the Sitepoint 'Build your own ASP.NET website' and have been successful in every lesson up to page 279. However I've come stuck when trying to add information to an Access Database. When I try to do so I get the message: Operation must use an updateable query. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query. I have tried the solution described in the book but still get the message. I am using IIS and XP Professional. The database works for queries so how do I get it to accept information entries?
Access Database File Permissions
I had some issues with setting file permissions to write to my database in access. How do I go about, step - by - step setting the file permissions?
How To Read An SQL Server Into A ASP Page And Then Change, Add, Delete And Write It Back To SQL Server
I need to read a SQL Server table into a Web Page and within the Web Page to permit my users to make changes to the records, delete or add new records and then save the entire contents back to the SQL Server table back. The functionality I am looking is almost the same as In the SQL Enterprise Manager whereby I can choose a table open the table and then return all rows and I can maintain the same and save it back to the SQL Server table. I want almost a similar web interface to such a functionality. Even if not a generic functionality as the SQL Enterprise Manager table maintenance appreciate if somebody can share the code with a sample how I can do it in ASP pages + T-SQL if need be.
How To Write Multiple Records In A Text Box
I have been trying to populate multiple email addresses in a textbox like in Hotmail. My aim is to send a mail to multiple recepients at the same time. I want to populate all addresses to "TO :" section. The problem I face is that I was not able to write multiple email addresses near by near For example xxx@yyy.com; eee@www.com I can only populate adresses one by one in a text box You can find my code which works but not in a way I want. Code:
Write Text Files To Local Machine
I need to know how to write a text file to a local machine. Here is my code: Set myFSO = Server.CreateObject("Scripting.FileSystemObject") Set WriteText = MyDrive.CreateTextFile("C: est.txt", True, False) Right now it writes the file to the C: drive on the server.
Wrapping Text Around Images Using Response.write
I cannot find any information on how to insert an image into a block of text and have the text wrap around the image. All if the text and graphics in the client's site are being pulled from the database using response.write. When I write straight HTML, it is easy to place an image into a block of text and align the image right or left, having the text wrap around the image.
Delete File
How can I delete a file which is saved in a folder when the user checked on the checkbox of the file to be removed and click on the Delete button?
Error Trying To Delete File
I am trying to delete a file off a server (same server asp app is running on). I have done this before and not encountered any problems. The code I am using is: Set File = CreateObject("Scripting.FileSystemObject") ImagePath = Server.MapPath("......sectionsezineeditionsimagesarticlethu mbs") ImagePath = ImagePath & "" & (RS_Content.Fields.Item("CON_Issue_Number").Value) & "" & (RS_Content.Fields.Item("CON_Image").Value) However, I am getting an error pointing to the last line of code above: Microsoft VBScript runtime error '800a01a8' Object required: '' I'm sure I am missing something simple from staring at this so long.
Program For Delete File
HI can any body give me a program for delete a online file in asp. Actually I have created a program for mail attachment. For attaching the file first of all I have to upload the file in a directory but after sending attach file the file should be remove from directory.
Delete File Across Network
I need to delete files across the network using web client (IE 6.x) in Win 2003 - IIS 6.0 environment.suggest an approach I can use to acheive this.Will using FSO do the job or I have to go COM way.
Delete File From Server
what r things that I have to do to let the client browser to delete a file on the server. I'm running my server on WIN2000 pro, IIS 5.0. I've stored my website and server in a virtual directory. This is the code i use to delete a file from the server folder Code: Function delete_file(exceldb) '***************** Delete********************** Set fso = CreateObject("Scripting.FileSystemObject") Set fileObject = fso.GetFile(Server.MapPath("..upload2uploads"& exceldb)) fileObject.Delete Set fileObject = Nothing Set fso = Nothing ' Deletes exceldb End Function
Delete A File From Folder
I want to know how to delete a file from a folder in ASp Like i have the path of the file at runtime in my ASp file... but how to delete ?
FSO Delete The Very Last Character In Tgext File
I am generating a huge CSV file. It is to large to open in notepad. Can I use the Filesystem Scripting Object to read the very last line of the file and delete the very last character? I am hoping the DSO will not have to read thru the whole file. it is probably way to big.
Delete Or Rename A File System
What is the easiest way to 1) delete a File System Website Solution and 2) rename a File System Website solution? I noticed when I create the ASP.NET Web Site (via File System location option) that I get one directly with my code (.aspx etc files). but the solution is under the default Visual Studio directory. So I assume if I delete these two directories then my solution is really gone? Renaming a solution seems to be a bit more tricky - what would be the easiest way to rename the solution and the associated directory with the acutal code (.aspx etc files)?
Prevent My Client To Delete File
We have offer a web space to hosting our client website. We offer them to upload asp files to their web space. How can I prevent the client from uploading asp files that will harm our web server. For example, deleting files in our server using Scripting.FileSystemObject to delete our systemmfiles.
Upload, Email And Delete File Off Server!
I have the setup working close to what I am after. The upload script I am using has been supplied by 'Lewis Moten'. Basically what I am after is. A job application contact form. that includes a input="file" element allowing the user to send a CV, to the address related to that job. So far locally I have the file uploading, the file sent, and then the file deleted all working fine. Althoug this may well work locally I feel I will have problems when I come to trying this live. Mainly due to timings. Surely the script would need to know when the file has been uploaded completely, also when the file has been sent completely before delete....
Delete File - Server.MapPath Problem
What's wrong with this code? Thie file is there, why cant it find it? <% myfile = request.querystring("filename") response write myfile myFSO.DeleteFile(Server.MapPath(" & myfile & ")) SET myFSO = NOTHING %> OUTPUT: data/000000/index.htm Microsoft VBScript runtime error '800a0035' File not found /deletefile.asp, line 9
Delete File On Client Side Machine
Is it possible to delete a file on a client side machine using VB/JAVA script? My website allows the user to upload a file to the website and after that I would like to delete the file on their machine tried this: Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile("C:1-1-S.xml") But it is always looking to the server machine? How do I say delete file XYZ on client machine. Is this even possible with the security issues?
Write Asp To A File
I'm trying to write an asp file from asp like: Set myFSO = Server.CreateObject("Scripting.FileSystemObject") Set TSO = FSO.OpenTextFile(MyFile, ForWriting, Create) TSO.write "<%" TSO.write "set myFSO = CreateObject("Scripting.FileSystemObject")" & vbcrlf ... TSO.write "%>" TSO.close I don't think I escaped the quotes right. how to do this?
Write %> Into A File In Asp
Hwo to write %> into a file in asp, I got error when I run the script below. <% strContent = strContent & "<%" strContent = strContent & "dim i" strContent = strContent & "%>" dim fs, f Set fs = Server.CreateObject("Scripting.FileSystemObject") Set f = fs.openTextFile(strPath, 2, true) f.write strContent f.close set f = nothing set fs = nothing %>
Write To A File
I want to write few lines to one file called log.txt. This log.txt is located in one directory called log.dir This log.dir is located in webroot (mysite.com/log.dir/) I protected this directory using password protection from my hoting control panel. So if I want to see log.txt file using browser, I have to enter username and password. It works fine. I have a asp file in webroot called my.asp This file writes some text in log.txt file. I tested this using firefox browser. All worked fine. You may wonder, where is the problem then? The problem is Internet Explorer. When I tested my.asp file using IE, it asks for username and password to proceed further. I want to avoid this. How can I write to a file located in password protected directory that will work with IE? I know it look stupid. ASP work on server side so it should work with IE if it works with FireFox. But trust me, it's not working .
Write Event On Asp File
"You can add special event handlers in global.asa that will get run automatically when special Active Server Pages events occur" how do i write event on asp that is linked to like session_onstart?
Write An Image To A File
Using the HttpRequest object to gather material (potentially from an external server), is it possible to write the response stream into which ever file type is required e.g. I request not just text, but an image - is is possible to write the image to file? Or is this just not possible? I can only find reference to create a text file.
From Php To Asp, Open And Write To File.
I'm having trouble translating a script that I wrote in php to asp. Well a line any how. $fp = fopen("/mydomain/logs/mail.log", "a+") or die("Could Not Write Form Data To File."); fputs ($fp, $info_from_form); fclose($fp); basically, the above line does is:- opens the file mail.log and writes to the content of that file. the "a+" means that if the file is not there then it will create "mail.log" and write to it. The process was included in a form to email php script.
Trying To Write To A Binary File
When I run an asp script, I can view the contents on the screen in pdf format. But instead of displaying the information to the screen, I want to be able to save the same information into a binary file with a pdf extension. Does anybody know how to do that? I have listed the coded that writes it to the screen, but now want to be able to write the information into a file ....
Write To An Excel File
how can a make a select to a database and then stored the results into an excel datasshet using vbscript. I already know how to connect to the database and make the query.
|