Solved

Unable to create filesystemobject

Posted on 2000-03-18
2
385 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…
Suggested Courses

617 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