Solved

Unable to create filesystemobject

Posted on 2000-03-18
2
378 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how can i count words? 2 42
how can i extend ? 2 41
javascript comparing two dates 3 18
Client Validating 2 date fields, required & comparison 1 22
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

813 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

16 Experts available now in Live!

Get 1:1 Help Now