Solved

Unable to create filesystemobject

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

948 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

20 Experts available now in Live!

Get 1:1 Help Now