Scripting.FileSystemObject Problem
I want to maintain a high score file on an iis server, and I try to use a txt file to contain the scores.
The server can't run the ASP file but writes HTTP internal server error (in danish). Is it possible, that the server does not support
Server.CreateObject("Scripting.FileSystemObject") ?
In other cases the server gives me an ASP error report (line xx in file yy and so on). Here it only says HTTP 500 (not 404). Even if I call the ASP directly. Code:
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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.
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.
Scripting.FileSystemObject Question
im trying to make a delete function to delete usernames from my database, for my website but how I do rewrite the line (username) with a blank? Code:
FileSystemObject Scripting Don't Work
I am having ASP with the following code to access the file with windows scripting host. The page run on local server IIS 5.1 on Win XP Pro SP2. The IE never show me any error with this, but will keep access the page for very long. This code is running fine on other system. Code:
Alternate For Scripting.FileSystemObject
In my application I need to read the lines from the text file. I use the following script to do that.It doesn't seem to work because of the Norton Anti virus script blocking. I cannot do anything to Norton so I want to find the alternative way to read the lines from the text file. Quote: Dim objFSO, objTextFile Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile(Server.MapPath("ProgrammeDetails"),1,false) Do While Not objTextFile.AtEndOfStream Response.Write objTextFile.ReadLine & "<BR>" & vbCrLf Loop objTextFile.Close Set objTextFile = Nothing Set objFSO = Nothing
Folder Problem When Created Through Scripting.FileSystemObject
When i create a folder through file system object and then check the properties of that folder, read only attribute is checked. At this time after creating the folder i need to put files in the folder and i get error due to this reason. Is it possible to make sure that read only attribute is not checked. Also at the company we use active file component to Upload the files. Active file provides the functionality of file system object too. I have created the folder through this and the result is the same.
Check File Exist Without Using Server.CreateObject("Scripting.FileSystemObject")
Is it possbile to check a file exist without using Server.CreateObject("Scripting.FileSystemObject") in asp page?? The reason is our hosting company turn that function off for security reason. Here is my original code: <% Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject") If objFSO.FileExists ("yourfile.txt") Then Response.Write "File exists" Else Response.Write "File does not exist" End If %>
Server.CreateObject("Scripting.FileSystemObject")
I have for a long time used the line: Set FS=Server.CreateObject("Scripting.FileSystemObject") in my ASP code. Suddenly one day this week it stopped working and I now get the error: Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed If I add the IUsr_<ComputerName> to the Administrators group everything works fine. What could be wrong?
Server.CreateObject("Scripting.FileSystemObject")
I am just beginning with asp and have gotten an error that I need some help with. I posted a pair of files to an online ASP host server. The files are in the same directory; one is readfile.asp which should open the other which is a simple text file - newText.txt . Code:
Scripting
The script below does what it i supposed to on a remote server, but when run on my local host, it hangs endlessly. Do I need to do something on my computer to accommodate this ability to create folders? Set objFSO = Server.CreateObject("Scripting.FileSystemObject") folder = Server.mapPath("images/rentals") & "/" & Request("l_name") objFSO.CreateFolder(folder) Set objFSO = Nothing
Scripting
I am trying to get a database working on my site but I am very New to ASP. what I want to do is if ther is a match in a database to automatically sent a msg to the user to say there is a match.
Using Scripting
I've got a freebie hosting mirror of my production personal website (sounds kinda grandiose, doesn't it?) at http://journeys.webhostme.com/. At the production website I was using Scripting.FileSystemObject to get the date that the file was last modified and to read/write a counter text file for the number of hits that the whole site had. The freebie has a kind of half-ass*d FileSystemObject, but it has no GetFile method. Is there any way I can accomplish the same things without using the FileSystemObject, or by using the crippled one?
Scripting
This ASP script below is sitting on a Windows 2000 IIS Server Box and the fldr was pointing to Bradford2 emp which was a Windows 2000 server and worked great, now I changed the fldr to point to Bradford7 emp which is a Windows 2003 R2 server. After pointing to Windows 2003 R2 box the FolderExists(fldr) no longer works. The directory is there and all the permissions are the same from Bradford2 to Bradford7. Dim fldr, fso fldr = "radford7 emp" Set fso = CreateObject("Scripting.FileSystemObject") If NOT fso.FolderExists(fldr) Then ' Folder Found Else ' Folder Not Found End If
ASP Scripting Languages?
I was reading up on ASP for a report and it talked about scripting languages. It also talked about using VBScript or Javascript as a scripting language? What exaclty is a scripting language and why do you have to use it?
Client Scripting
The following HTML exists on a page in Internet Explorer v6: <BODY> <FORM action="x" method="post" name="Form1"> <INPUT type="hidden" name="key" /> <INPUT type="submit" value="Go" /> </FORM> </BODY> What would be the correct VBScript or JavaScript syntax to: A. Set the value of the key field to "ABC" B. Submit the form to the server
Remote Scripting
I am upgrading an ASP app that implements javascript remote scripting. The probem is that the application works fine except when any remote scripting is called. Does remote scripting work under IIS6.0?
MS Access Scripting
I want to script real-time data FROM financial Web sites TO an MS Access db. on a PC (no server issues). Is this possible?If so what should I use ASP VBScript, ASP.NET VB or something else
Remote Scripting
I would like to use the Remote Scripting method. Where can I find the latest scripts ie (RS>htm, RS.asp & RSProxy.class) for this operation?
ASP Scripting Technology
Does anyone know if the ASP scripting technology has a support lifecycle at Microsoft? Is there any information on if/when ASP as an application platform will no longer be supported by Microsoft? I have a customer that wants to know if they stay w/ a mission critical ASP based application, will Microsoft will still provide support (updates, security patches...) for the ASP technology it is built on.
Remote Scripting ASP
I use the RemoteScripting with the rsproxy.class within my asp pages. I don't have problems except, when the Java console is not active in IE. Is there a way to detect from asp, if the java console is active or not ? or, how to do remote scripting without the rsproxy ?
ActiveX Scripting
Does anyone know where I can find any good documentation using ActiveX scripting with asp and vbscript? How is ActiveX scripting different than using ADO (ActiveX Data Objects)?
Remote Scripting
I have a Web application that uses Remote Scripting to provide dynamic data to a web page.I am testing the application in Internet Explorer 6 SP1 running on Windows XP Professional. When I use the Microsoft JVM,the application works without any problems.However, as a result of future withdrawal of support of the Microsoft JVM as a result of the settlement with Sun, I need to ensure that the application works okay with the Sun Java plug-in for Internet Explorer. this component is no longer available,and clicking on the OK button only reiterates this message. When I click on the Cancel button instead, the Remote Scripting functionality fails to work.Is it possible for Remote Scripting to be configured to work with an alternative JVM, such as the Sun Java Plug-In, or is it entirely dependent on the Microsoft version?
Action Scripting
Anyone can help me to create a Text Formating. AS I want that there is a object. I want to write some text in a textbox on Run time. and it displays on the object and if i want to change his font,size or color. so tell me how its possible. can i get tha code from anybody or from anysite or anyone plz me to do this in Flash with Action Scripting.
Remote Scripting Vs XMLHttp
I have a form where I want to be able to validate a field against a DB *before* the form has been submitted. After doing a bit of homework, it seems there are two general approaches: 1) Remote Scripting [using RSExecute/RSGetASPObject] 2) Using XMLHTTP/XMLDOM objects I have no experience with either, so I though I'd see what my peers are using.
Order A Scripting.Dictionary
I have a problem with the Scripting.Dictionary in ASP. All my data is entered into my Dictionary with no order and I would like to order them alphabeticaly and I don't know how to do.
Cross-Site Scripting
I need to know if there is a standard aproach in ASP ( or any other ) to filter HTML tags. I mean, filter any cross-site scripting code.
Sending Newdlstter Thru ASP Scripting
Iam planning to send newsletter to my customers thru ASP Script. I have abt 6000 customers. The reason i cant use any email software is my newletter is dynamic means i am using some customer data in that. Now when i tested my newsletter with my host( Shared Server), its talking abt 2 minutes to send 20 email, which is too slow for me to send abt 6000 emails. Now my hosting guys are suggesting me Dedicated server solution so i can use that for newletter. so does anyone know any solution i.e any asp host, email object for bulk emails, any fast scripting or any other solution, please reply me as soon as possible
Remote Scripting Error
I'm using remote scripting and get an error : "Object doesn't support this property or method" The problem is that I dont get this error message when I'm accessing the page from another computer over the network,I only get the error when I'm accessing the page on the local machine. Any ideas on how to fix this?
Choosing Scripting Language
I am learning them and using them in a project simultaneously. I felt VBscript is a little primitive when it comes to error handling. I mean I can't put "On Error Resume Next" command before every code line of the program. That's one of the problem I came across so far - and for me it is a major draw back to develop a application with no or little error-handling. which is better to use along with ASP - VBScript or JScript or JavaScript. As I don't have experience using them, I can't judge which is better to use in a real time project.
Cross-Site Scripting
I hv a web application mainly written in ASP. How can I prevent my pages like login.asp and other important pages from Cross-site scripting malicious attacks. What precautions should I take ?
Remote Scripting Language
I am using Microsoft remote scripting for a site that I am making. Everything is going pretty good except one thing. My values which I want to store in the database(this procedure takes place in the calling page) are being stored with wrong and wuth no sence characters. So far I understood that using remote scripting for languages more than English is impossible. Am I right or is there a tip for using it for every language eg Hindi etc etc? I need an answer to this because I am trying to solve this problem for more than a month.
Client Side Scripting
I ened to get the user's windowsNT logon name. When the ASP is on my computer I can easily get it because I am logged in to what is the server. When the page is on another machine I cannot retrieve the login because the script is running on the server and not the client. What code do I use to make a script run client side instead of server side? The code I need to run client side is: sFullUser = trim(Request.ServerVariables ("LOGON_USER")) If there is another way to get the user's login from windows that will work just fine too.
To Increase The Asp Scripting Expiry Time
set Server.ScriptTimeout variable to 214783647. it's maximum timeout value. insert the following sentence at start line of your asp file. <% Server.ScriptTimeout=2147483647 %>
Scripting.Dictionary & Possibly 0x80020009
Ok, first I had a problem with that error code: 0x80020009, but this article http://support.microsoft.com/defaul...b;EN-US;q175239 fixed that. I'm saying this because it might still have an impact..... I don't know. I'm using scripting.dictionary for my webshop, so I'm putting the scripting object in a session variable. So you can order three types of things, and I have one page that lists your shopping cart before checkout. When I display only one of the three types (ie delete the rest from the file) it's all good. when I try to display them all, stuff just dissapears. If it wasn't for the fact that it works with one type, I would have thought it was something with some of the if syntaxes. Code:
Regular Expression In Scripting Engine 5.1
I need a regex pattern that will grab a select or textarea tag in an HTML file. If I run the pattern I should get: <select name="whatever"> <option value="a" selected>A</option> <option value="b">B</option> <option value="c">C</option> </select> Or <textarea name="whatever">Here is some text area text</textarea> I know the following pattern works: <(select|textarea).*(.| )*?</(select|textarea)> But the problem is my web hosting company is using ASP scripting engine 5.1 which does not support the non greedy delimiter (?). I doubt they are going to upgrade to 5.5 anytime soon. I'll appreciate it if anyone can give me a pattern that does the same job but does not use the ? delimiter. Is there a way I can tweak the pattern above so that it works in ASP scripting engine 5.1?
Scripting.Divtionary Object Error
i am trying the create a dictionary obejct in asp but its giving the error Error Type: (0x8002801D) Library not registered so please suggest me the soln with sample code.
Loaded Latest Scripting Engine
I downloaded the latest version of the VB scripting engine for Windows 98 as I needed to have support for regular expressions. Everything was fine yesterday but when I switched my pc on this morning and tried to access micros personal web server/web manager via start/programs, the page where I click 'start' does not appear. I can't get it to run. what has happened and how to rectify it. i am under huge pressure to get something done by the end of today and desperate to sort this out asap.
Increase The Asp Scripting Expiry Time
I have an asp application. However, the scripting time is too early too expried. How can I extend the scripting time for an individual asp page, or set for one website.
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?
Reading Form Values Into A Scripting.Dictionary
I have been trying to read values from a form into an array on a page without much success and was told to use a Scripting.Dictionary instead. There are a variable number of fields on the form as it is different according to which product is ordered (as are the fields that are used to create the record.) Code:
Scripting Dictionary And User Defined Objects
ok - this works: Dim X X = CreateObject("Scripting.Dictionary") X.add 1, "Hello" This doesn't.... Dim X X = CreateObject("Scripting.Dictionary") Class Aprivate VEnd Class Dim B B = new A X.add 1, B Can anyone tell me how to make this work?
Convertind Asp From Access Db To MYSQL Db Scripting Issues
im converting my access db to a mysql db. having issues reading int (true/false) values out of the mysql db. this is a snippet of the asp script Code: If rslogin("Master_account") = True Then Response.Write("master_account=true") else Response.Write("master_account=false") in the access db the master account field was a true/false ( yes/no) field. in mysql its an int filed with a value of 0 or 1. Code:
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.
|