.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 20th, 2001, 08:16 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
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 />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Problem with fs.GetFile - works and works not


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway