Solved

Unable to create filesystemobject

Posted on 2000-03-18
2
376 Views
Last Modified: 2008-02-07
I am trying to create a filesystemobject, and I receive a message "File not found" - my code is as follows :
<%@ Language=JavaScript%>
<HTML>
<HEAD>
<META name=VI60_defaultClientScript content=JavaScript>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
var fso;
fso = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso.GetFile("d:\ftpin\FSEACAT.dat");
//-->
</SCRIPT>
</HEAD>

<BODY LEFTMARGIN="0" TOPMARGIN="0" bgColor=dodgerblue text=navy Link=maroon vLink=mediumvioletred aLink=antiquewhite>
<CENTER>
<P style="COLOR: navy">
<H1>X-SEAR FEED TRACKING SYSTEM</H1>
<FONT color="red" style="BACKGROUND-COLOR: dodgerblue">&nbsp;&nbsp;&nbsp; This module can be accessed by authorised users only.</FONT></P>

<TABLE BORDER="1" LEFTMARGIN="1">
<TR style="BACKGROUND-COLOR: skyblue">
<TH ALIGN="CENTER" VALIGN="TOP"><style="BACKGROUND-COLOR: dodgerblue">File No.</TD>
<TH ALIGN="CENTER" VALIGN="TOP"><style="BACKGROUND-COLOR: dodgerblue">File Name</TD>
<TH ALIGN="CENTER" VALIGN="TOP"><style="BACKGROUND-COLOR: dodgerblue">Feed Frequency</TD>
<TH ALIGN="CENTER" VALIGN="TOP"><style="BACKGROUND-COLOR: dodgerblue">Date/Time (FTPed)</TD>
<TH ALIGN="CENTER" VALIGN="TOP"><style="BACKGROUND-COLOR: dodgerblue">Proccessed</TD>
<TH ALIGN="CENTER" VALIGN="TOP"><style="BACKGROUND-COLOR: dodgerblue">Error</TD>
<TH ALIGN="CENTER" VALIGN="TOP"><style="BACKGROUND-COLOR: dodgerblue">Total No. of Updated</TD>
<TH ALIGN="CENTER" VALIGN="TOP"><style="BACKGROUND-COLOR: dodgerblue">Total No. of Rejected</TD>
<TH ALIGN="CENTER" VALIGN="TOP"><style="BACKGROUND-COLOR: dodgerblue">Total No. of Records</TD>
</TR>
</TABLE>
0
Comment
Question by:raj_raman
2 Comments
 

Author Comment

by:raj_raman
ID: 2631801
Adjusted points from 50 to 75
0
 
LVL 4

Accepted Solution

by:
brigmar earned 75 total points
ID: 2636430
f1 = fso.GetFile("d:\ftpin\FSEACAT.dat");

Should be:

f1 = fso.GetFile("d:\\ftpin\\FSEACAT.dat");


Brian
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now