codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:



Home » ASP » Article

ASP GetFile

Article by: Jeff Anderson (9/2/2006)
Bookmark us now! Add to Favourites
Email a friend!Tell a friend
Sponsored by: FindMyHosting - Web Hosting Search
Summary: An introduction to the GetFile Method of the FileSystemObject
Viewed: 14861 times Rating (2 votes): 
 4.5 out of 5
 Rate this Article  Read Comments  Post Comments

ASP GetFile



The ASP GetFile method is used to find out information about a given file. The most common uses are to find the DateLastModified, the DateLastAccessed, the DateCreated and the Size in bytes of the file.

The full list however, is:

DateLastModified, DateLastAccessed, DateCreated, Drive, Name, ParentFolder,Path, ShortName, ShortPath, Size, Type, Attributes

Here's some code that will display the full list of a given file in the browser (obviously you need to change the filename to one that exists on your server):

Select All Code







CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
Rate this article:     Poor Excellent
View highlighted Comments
User Comments on 'ASP GetFile'


To post comments you need to become a member. If you are already a member, please log in .

 



RELATED ARTICLES
ASP FilesystemObject
by Jeff Anderson
An introduction to the Filesystemobject
ASP OpenTextFile
by Jeff Anderson
An introduction to the OpenTextFile Method of the FileSystemObject
ASP GetFile
by Jeff Anderson
An introduction to the GetFile Method of the FileSystemObject
ASP CreateTextFile
by Jeff Anderson
An explanation of the CreateTextFile Method, part of the ASP FileSystemObject
ASP CreateFolder
by Jeff Anderson
Using the CreateFolder method of the filesystemobject to create a folder on the server
ASP GetTempName
by Jeff Anderson
Use the GetTempName method to create a randomly generated temporary file on the server.
ASP FileExists
by Jeff Anderson
An introduction to the FileExistsMethod of the FileSystemObject
ASP FolderExists
by Jeff Anderson
An introduction to the FolderExistsMethod of the FileSystemObject








Recent Forum Threads
• Re: Perl Script - File Handling.
• Open a file from website
• Re: to open 5 terminals from one and also execute different commands on each terminal
• read a selected multiple line, those should match some of the values read in the files..
• Help me please
• Empty the contents of a file.
• Month Start, End dates
• show hide problem in dynamic table creation
• Re: ASP Sendmail has huge delay - ANYONE??


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008