FileSystemObject Security
By using FileSystemObject, I want a specific user from the server to write and delete folders, and not allow the IUSER_<server> to do that. Is it possible? If yes, how I can do that?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
FileSystemObject
I am trying to attach files (all formats excel, word, including power point, pdf, any other embebbed files ...) on a form and copy them on to a specific folder. The code works only for text, word and excel formats but not for pdf, ppt, embbedded files. How could I add these files also? I used this in the code: Set oF= FSO.CreateTextFile("FolderNameFileName", True)
Filesystemobject
i have made a site that allows users to log in and download or upload a file. but now i want to put in a drop-down menu so they can select which file they want to download. I want to populate the drop-down menu with a list of files in a directory using filesystemobject so it can change depending on what user logs in. can anyone give me some idea of how to populate the drop-down menu using filesystemobject.
FileSystemObject
I am trying to see if an XML file exists and if it does then show the data in it if not do something else but can't seem to find the file. That definitely is the virtual path. Can you see anything wrong? Code:
FileSystemObject
I just want to be able to access a simple text file but I cant not seem to figure it out I have used the FileSystemObject in Javascript before! Can anyone point out the error in my ways!Code: <html> <head> </head> <body> <% Dim FSO,FILE FSO=Server.CreateObject("Scripting.FileSystemObject") FILE=FSO.CreateTextFile("c: est.txt",true) FILE.WriteLine("Some Text!") FILE.Close FILE=nothing FSO=nothing %> </body> </html>
FileSystemObject
Can anyone tell me which protocol (http/s, RPC) or service (w3svc) is used when using FileSystemObject in an ASP page?
FileSystemObject
I can't create textfiles.I could last week, and I can on my spare server. But this week, my production server freezes when trying to write to the file System. set ObjTextStream = fs.CreateTextFile(str, fsoForWriting) Where should I start to look for the difference? Both servers are W2KSP3. Both have IIS 5.I've run virus scans with the latest updates and no viruses found. I did receive an error about Windows File Protection needed to update some files, but those were ftp related.
Filesystemobject
is there any way that you can delete blank lines from a file or prevent them from displaying
Filesystemobject
I am trying to read a file (in ASP....my first ASP project) and i get the following error Error Type: Microsoft VBScript runtime (0x800A01B6) Object doesn't support this property or method /CP_Site_C/Default.asp, line 15 and line 15 is fileStream = fso.OpenTextFile(filePath) and the complete code is: Dim fso, fileStream Dim HitCnt, filePath set fso = Server.CreateObject("Scripting.FileSystemObject") filePath = "C:InetpubwwwrootCP_Site_CHitCount.txt" fileStream = fso.OpenTextFile(filePath)
FileSystemObject
Ok, I've got several different RAW LOGS, which I want to anylise, with the FSO. However, I haven't got the faintest idea how to actually do anything (usefull!). For example, I want to be able to set the date of a traffic rapport (e.g display details from 15/03/2003 'till 17/03/2003). I also want to get all the usuall stuff like pageviews, visits, visitors...etc Can anyone help me how to get all this, and still maintain somewhat of performance of my webpages? Code:
FileSystemObject
This my code for practice: <html> <body> <% Response.Write("6 ") dim fs,fname set fs=CreateObject("Scripting.FileSystemObject") set fname=fs.CreateTextFile("f: est.txt") fname.WriteLine("Hello World!") fname.Close set fname=nothing set fs=nothing %> </body> </html> but I couldn't create the text file at all with no error warning.How can I do this?
.FileSystemObject
I'm having intermittent trouble with the Scripting.FileSystemObject.Basically, I'm stress testing my ASP application and using the FSO to output lots of instrumentation/debug information to the same file.About 5 times within a 15 minute stress test, it returns "Permission Denied". I would think that this object is capable of asynchronous file open and writes.Has anyone else seen this issue and been able to resolve it?
FileSystemObject
I have serious problem with FileSystemObject, When I try to create object it saysInvalid Class String It seems that FileSystemObject is removed or currupted. Could any know how can I re-install FileSystemObject it or fix this problem
FileSystemObject
In my ASP (IIS 5.1), when I use oFile.OpenTextFile to open a file, the code stucks. How can I fix this problem? set oFile = CreateObject("Scripting.FileSystemObject") strServerFileName = "files/fieldmap.txt" If (oFile.FileExists(server.mappath(strServerFileName ))) Then Const ForReading = 1 Set fSubmit = oFile.OpenTextFile(server.mappath(strServerFileNam e), ForReading, False) --->> end if
Filesystemobject
I'm using the filesystemobject to list all files in a directory Code: Function lagsangliste() dim fso, tekstmappe, file set fso = Server.CreateObject("Scripting.FileSystemObject") set tekstmappe = fso.Getfolder(Server.Mappath("/claus/tekster")) response.write "<p class=sangliste>" for each file in tekstmappe.files Makelink_fullscreen(file.name) Next response.write "</p>" End Function But the filenames seems to come in random order.Is it possible to order them alphabetically?
FileSystemObject
Can the FileSystemObject be used to return the document title?I am using a script to return all files in a folder, but would like to display teh document title instead of the filename. Is there a way to do this?
FileSystemObject
i am having Permission problems with FileSystemObject.can any one guide me whats wrong? set fs=Server.CreateObject("Scripting.FileSystemObject") fcopy1=server.mappath("index_3.asp") set t=fs.OpenTextFile(fcopy1,1,false) x=t.ReadAll t.close 'Response.Write("The text in the file is: " & x) fcopy2=server.mappath("../site/samnik/content/index_3.asp") set f=fs.CreateTextFile("fcopy2") f.write(x) Response.Write("<hr><a href=../site/samnik/content/index_3.asp>file is created</a>") f.close
Using Filesystemobject
Im trying to get this filesystemobject code to access a different server then the one its sitting on. I am a admin on both servers. Is there anyway you can do this? dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("") Response.Write("Folder last accessed on: ") Response.Write(fo.DateLastAccessed) set fo=nothing set fs=nothing I havent heard of anyone trying this before, but I hope its possible.
Filesystemobject
How do you set the permissions to allow filesystemobject? I have already gone into iis and set the write permissions but that did not do it.Code: set fso = createobject("scripting.filesystemobject") Set act = fso.CreateTextFile(server.mappath(file_being_created), true)
FileSystemObject
I keep getting this error when I try to run the application. Could some one tell me what triggers this error.It was working fine and all of a sudden I started getting this error.
FileSystemObject
How would I go about deleting a data in a text file? ex:test.txt 123 123 1234 1234 12345 12345 how would I use FileSystemObject to delete the 12345 line
Use FileSystemObject
I'm trying to write some simple code using FSO, but I can't make it work. There are a many FSO tutorials on the web, but they all start with a line similar to: set fs=Server.CreateObject("Scripting.FileSystemObject") Yet that line simply doesn't work. I've tried it on my server and on my development PC, both of which are configured as web servers running ASP. I suspect that these computers simply aren't configured to support FSO, but nowhere can I find any hint of how to do that configuration.
FileSystemObject
I've been using the FileSystemObject to try to save various html files as .htm files. I have been pulling down the code correctly (its our website, we are needing the database driven pages stored statically on cd, hence we are automising the process) I have the HTML in strings, replaced all the links I need to, and when I try to write to the file via the fs.write(HTMLCode) it doesn't work, I've tried many approaches .
FileSystemObject
When dealing with the FileSystemObject component, I found that attempting to use the fso.GetFile(path) method (where fso was set using the CreateObject method, and path is set to the physical path of the file) was completely hanging IIS, that I had to restart it to get anything going. PLacing traces and breakpoints up to that point showed that this is the method causing the hand. The folder in which this file resides has only about 10 files in it. I'm running on Windows 2000 SP4 with IIS 5.0. I also have Norton AV 2002 installed and I tried disabling it in case it is the culprit. Same result. All services that should be running appear to be in the correct (started) state. I also have Zone Alarm Pro running, but both IIS and the browser are running on the same machine, and the local host (127.0.0.1) is in the Trusted Zone.
FileSystemObject
Is there a way to use FileSystemObject to loop through a folder,and show the names of all the child folders within that folder? I havesearched on this and came up with empty pockets.
FileSystemObject
the CreateObject works fine. the FolderExists works fine. I tested this out by giving it a folder that does not exists too. working fine means, I get response within a moment or two. but when I use GetFolder, IE takes about 30 seconds to go half way on the progress bar, then hangs Also, I do get notified from Norton that something is trying to do go out. eventually I get this from IE: The page cannot be displayed There are too many people accessing the Web site at this time. any clues why GetFolder takes so long ? and what is going on?
FileSystemObject
Is it possible to use FileSystemObject across two servers? For example, my web application is on Web1 and my files are on Files1. Could my ASP application on Web1 use Scripting.FileSystemObject to check if FileExists() and GetFile().size ? I'm mapping the Files1 as a virtual directory on Web1 IIS.
FileSystemObject
I am trying to move a file from one directory to another in a script. I am getting close but I am getting this error - File Already Exists. In debugging I output the current and new folders as I am using them in the move method and they are correct. The file DOES NOT exist in the new directory but I am getting the error none the less. here is my code Code: mySQL = "Select `shop`,`image` from `staff` where id = " & request("emp") set rs=cnn1.execute(mySQL) If rs("shop") <> request("shop") Then Set objFSO = Server.CreateObject("Scripting.FileSystemObject") currentfolder = "../../images/shops/shop" & rs("shop") & "/staff/" & rs("image") newfolder = "../../images/shops/shop" & request("shop") & "/staff/" objFSO.MoveFile Server.mapPath(currentfolder), Server.mapPath(newfolder) Set objFSO = Nothing End If
FileSystemObject
I have ASP code that runs on one XP machine, but not another. Here's the code: Dim a, fso Set fso = Server.CreateObject("Scripting.FileSystemObject") Set a = fso.OpenTextFile("c: estfile.txt", 8, True) a.WriteLine("This is a test.") a.Close I get an error on the fso.OpenTextFile statement: Microsoft VBScript runtime (0x800A01B6) Object doesn't support this property or method: 'OpenTextFile' I have used this code many times before, and think there is an "environment" problem, like permissions, or missing dll or something like that.
FileSystemObject
I'm working on a simple image gallery using the FileSystemObject. This basically makes each folder in my images folder a gallery. When you view a gallery I have it show 15 images, then I want to have a "next" button at the bottom where they can view more pictures if there are more than 15 pictures. So when it stops I have the last image that it shows placed into a querystring. How can I have the FileSystemObject start looping through the images starting with the image I have in the querystring on the next page?
Scripting.FileSystemObject
I would use the Scripting.FileSystemObject to find a file in a server, which I connect with a VPN connection. I'm not sure that the Scripting.FileSystemObject works with a folder, which is in another server, using an ASP page which is on my server.
FileSystemObject - Caching?
I have an application which allows users to check in/check out XML files from an MSSQL database. When checked out, the XML file resides on a network drive. This allows users to edit the file. When checked in, the XML file resides in the database etc.. Anyway - the process works fine, but after a couple of hours usage the checkin method stops working. No matter what you change in the XML file it does not update. Checkin method: Create FileSystemObject (FSO) Retrieve 'Checked Out' File from the network drive using the FSO Retrieve contents of file using ReadAll Update database with new content Kill FSO THe FSO.ReadAll returns a cached/old version of the XML file. I can open the file in notepad and I can seee the changes made, but when I do a ReadAll on the file using FSO the change is not there... The only way around this is to re-boot my PC. Is it possible the memory allocated to my application fills up and cannot create new instances? Anyone else experienced anything like this? The application is an ASP based Web Application and runs through IIS5.
ASP FileSystemObject Upload.
I am having issues with a script to upload files from a client to a webserver. The problem is not with the actual upload but with where it uploads. The whole process is supposed to create a folder (it does) then upload the file to that folder and this is where the problem comes in. The file is written to the parent directory, not the directory that was created for this user. Code:
FileSystemObject - Sorting
Is there any way to sort the files and folders according to different things (i.e. size, date, etc.)? I'm using For...Next loops.
How To The Sort FileSystemObject?
I'm trying to sort the fso. The file names are named june2004, july2004, august2004, ect... I need to sort them in chronological order starting with the latest one first. The files were recently created so sorting them by the modified or created date will not work. The only other way is to them by the name of the file. I tried converting name of the file into a date using CDate (formated the file names as July 2004, August 2004, ect...) but it did not work. Code:
FileSystemObject & Thumbs.db
I have a script intended to read through directory and display each image in the folder on a page. I occasionally see the notorious thumbs.db file which of course won't display in my page, but gives me an "image missing". Any clues. Can I test to see the extension of the file, ie., .jpg, .jpeg, .gif...
FileSystemObject Error
I dont know why i am getting 500.100 asp error. (The page cannot be displayed). I have 2 .asp files. One display.asp and other count.asp code from display.asp (where i am calling the procedure declared in count.asp) enterUserData(session("uid")) Code:
FileSystemObject.CreateTextFile
I am trying to create a dynamic CSV file via FileSystemObject.CreateTextFile. I have no problem creating the CSV file normally but I would like to insert comments and VBScript into the coding. Normally, the file would look something like this: .....
Create FileSystemObject
why can't i create FileSystemObject on my LocalHost?I was trying to write a script in asp to get folder content.It's working just fine on my remote server, but not on my computer.I'm running win Xp Pro.
SCripting.FileSystemObject
I havw written this code in ASP Dim oFSO Dim oTempFolder Set oFSO = Server.CreateObject("Scripting.FileSystemObject") Set oTempFolder = oFSO.GetSpecialFolder(TemporaryFolder) Response.Write "<br>Temporary Folder Name is " & oTempFolder.Name Response.Write "<br>Temporary Folder Path is " & oTempFolder.Path It hangs forever on the line Set oTempFolder = oFSO.GetSpecialFolder(TemporaryFolder) However it works perfectly if I write the same code in VB Application. Can anybody tells me what's wrong in it.
FileSystemObject / MapPath
I have a script: Set objdFile = Server.CreateObject("Scripting.FileSystemObject") Set OpendFile = objdFile.OpenTextFile(Server.MapPath("dUpdate.txt")) dFileValue = OpendFile.ReadLine OpendFile.Close And It Returns A: "File Not Found Error" The dUpdate.txt file is in the Root. what I am doing wrong?
Filesystemobject Delete
why this code doesnt' work, it deletes the first file but not the second, the error I get states Microsoft VBScript runtime error '800a01a8' Object required: 'ojbFSO2' Code: Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject") objFSO.DeleteFile(Server.mapPath(img)), False Set objFSO = Nothing img = "" if rs("ew") <> "" Then img = "../../images/gallery/enlarge/" & rs("image") Set objFSO2 = Server.CreateObject("Scripting.FileSystemObject") ojbFSO2.Deletefile(Server.mapPath(img)), False Set objFSO2 = Nothing End If
Scripting.FileSystemObject
I've some problems with "Scripting.FileSystemObject" object. If I try to create a new text file with the function myfile.CreateTextFile I have two differents result: If I execute the script client-side there are no problems, but if I execute the script server-side the process stops when I call this function (I think that the process is in loop because I must close iexplore to stop the application).
Filesystemobject Error
I've downloaded this code from Web. While executing this, the following error msg appears, The page cannot be displayed. The necessary dll scrrun.dll is present in System32 folder. Code:
I Need Expert Help With FileSystemObject
I need for anyone to access my ftp site and upload a file to it wheather is images, text files, xls files, pdf's, etc... and I don't know where to begin. I have read some about FileSystemObject but don't know how to use it and here's where your expertise come into play.
Filesystemobject Error
I've downloaded this code from Web. While executing this, the following error msg appears, The page cannot be displayed. The necessary dll scrrun.dll is present in System32 folder. Code:
Security
I now have a login page for user authentication. But I am kind of paranoid about security. Is it enough just to have that to secure my site? How do hackers do "sniffing"? And how to prevent that? If there is any GOOD website security tutorial, I would love to read it.
Security
IIS can handle security on its own without the need for complex scripting and i like the idea of being able to just let the system do it however im not sure how to set such things up and would that mean that if you used something like integrated windows authentication that security is delt with by windows and its users info rather than getting the info from a database of my choosing ? the whole concept is quite confusing to me but there must be a simple ish way to set up at least some form of secure site area within my web.
Security
I am starting to learn asp and I have IIS installed on my WIN xp pro machine. Do I have to worry about security for any reason at all. I don't believe I have file sharing on at all, then again, I don't know if that has anything to do with this.
|