
March 20th, 2001, 08:16 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
Problem with fs.GetFile - works and works not
<i><b>Originally posted by : JoergZdarsky (Joerg.Zdarsky@ip-deutschland.de)</b></i><br />Hi,<br /><br />i made a little ASP File that gets date,time and size information of<br />a specified file. That is the code i used:<br /><br /><%<br />filePath = "c:inetpubwwwrootschema_edi10
tlnpr00.exe"<br />Set fs = Server.CreateObject( "Scripting.FileSystemObject" )<br />Set myFile = fs.GetFile( filePath )<br />file_datetemp = myFile.DateCreated<br />file_date = left(file_datetemp,8)<br />file_time = right(file_datetemp,8)<br />%><br /><br />later on, i want to display the strings with<br /><br /><%=myFile.Size %><br /><% Response.Write(file_date) %><br /><% Response.Write(file_time) %><br /><br />the ASP File works well on my "dev"-Server, but when copying it<br />to another server (where it should work later) i receive the<br />following errormessage:<br />Microsoft VBScript runtime -Fehler '800a01b6' <br />Objekt unterstützt diese Eigenschaft oder Methode nicht: 'fs.GetFile' <br />(sorry for german errormessage ;-) ), which should mean in english<br /><br />Microsoft VBScript runtime - error '800a01b6'<br />Object doesnt support this attribute or method : 'fs.GetFile'<br /><br />What could cause that error?<br /><br />THANK YOU for help and greetings from germany,<br />Joerg<br />
|