Solved

Unable to create filesystemobject

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET - Why is accordion not working? 3 47
Find out all repos that a user is most active on Github 1 29
selected value 16 25
Put javascript to get dropdown value 3 22
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…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

749 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