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:

View Replies


ADVERTISEMENT

SCripting.FileSystemObject In ASP

I have 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.

View Replies View Related

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).

View Replies View Related

Scripting.FileSystemObject To Search

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.

View Replies View Related

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 Replies View Related

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:

View Replies View Related

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

View Replies View Related

Runtime Error On Scripting.filesystemobject

i have a problem on an asp page , running since 1 year ago, whe try to
create a file systemobject using
set oFSO = CreateObject("Scripting.FileSystemObject")
the error returned is :

(0x8002801D)
Library not registered

IIS 5.1
XP PRO sp2

anyone have the same problem?

View Replies View Related

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.

View Replies View Related

ActiveX Can't Create Object:"Scripting.FileSystemObject

I'm at a complete loss on what is causing this error. ActiveX Can't create object:"Scripting.FileSystemObject when executing the code below. Every example I've looked at is pretty much identical except for the file names.

What I am ultimately trying to accomplish is when clicking on a link check to see if a file with today's date exists if so link to it. If not, link to a file with yesterday's date.

View Replies View Related

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
%>

View Replies View Related

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?

View Replies View Related

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:

View Replies View Related

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

View Replies View Related

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.

View Replies View Related

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?

View Replies View Related

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

View Replies View Related

Cgi Scripting

I have a form who's action is an ASP page used to verify the form data. If the data passes, it re-directs to a cgi script. Otherwise, it redirects back to the form page and shows the appropriate error messages. The problem, however, is that the data is lost once it goes thru the validation page. It doesn't get sent on to the cgi script, and it doesn't get sent back to the form page if the data validation fails.

What I need to know is how I can pass the values that were entered on to the cgi script or back to the form page after validation. Or, better yet, how to do the validation on the form page itself, and only proceeding to the cgi script (the form's action) if validation passes.

View Replies View Related

FTP Scripting

I have been "hitting the wall with my head" for couple of weeks now, what I need is a way to automatically generate ftp script that will be run when I click the download link on the site that is made using asp technology (not asp.net). How can I do that,can anyone give me some helpfull information ? I am using windows2003 server, with IIS and FTP server set up.

View Replies View Related

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?

View Replies View Related

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

View Replies View Related

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

View Replies View Related

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.

View Replies View Related

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 ?

View Replies View Related

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)?

View Replies View Related

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?

View Replies View Related

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.

View Replies View Related

Scripting Or SQL Statement

This page, http://pjshimmer.tripod.com/movies3.html, contains info of my movie collection. I have the title and year in one table cell, as in Lord of the Rings (2001). I intend to put all the info in an Access database, but I would like to have separate fields for Title and Year.

The pseudocode can work like this:

1. Find open parenthesis "(" in field -Table-
2. select everything after "("
3. move the selection to the new field -Year-

View Replies View Related

Scripting.Dictionary

I'm trying to use the Scripting.Dictionary. However the item I'm adding to the dictionary is an array. An example is

Set objD = CreateObject("Scripting.Dictionary")
objD.Add "Key1", Array(1,2,3,4,5)

I know for sure the array always has 5 items. In VBScript, I can access the item like this:

objD.item("Key1")(1) to objD.item("Key1")(5)

View Replies View Related

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.

View Replies View Related

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.

View Replies View Related

Javascript 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?

View Replies View Related

Remote Scripting Method

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?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved