Microsoft KB Archive/256312: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - ">" to ">")
 
Line 69: Line 69:
<br />
<br />
'''Example''':
'''Example''':
<pre class="codesample">ftp&gt; dir
<pre class="codesample">ftp> dir
200 PORT command successful.
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
150 Opening ASCII mode data connection for /bin/ls.
Line 86: Line 86:
After you make this change, the directory listing appears as follows:<br />
After you make this change, the directory listing appears as follows:<br />


<pre class="codesample">ftp&gt; dir
<pre class="codesample">ftp> dir
200 PORT command successful.
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
150 Opening ASCII mode data connection for /bin/ls.

Latest revision as of 09:44, 21 July 2020

Knowledge Base


FTP DIR command shows time created instead of year

Article ID: 256312

Article Last Modified on 12/3/2007



APPLIES TO

  • Microsoft Internet Information Server 2.0
  • Microsoft Internet Information Server 3.0
  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Services 5.0
  • Microsoft Internet Information Services 6.0



This article was previously published under Q256312

We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

SUMMARY

When you issue an FTP dir command against an IIS FTP server, one or more of the files listed may not display the year created. Instead, the time created is displayed.

MORE INFORMATION

The IIS FTP server is configured to display UNIX-style directory listings. As per the UNIX specification, files created in the current year display the time of creation instead of the year of creation.

Example:

ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
-r-xr-xr-x   1 owner    group               1 Jun  3  1999 NotCurrentYear.txt
-r-xr-xr-x   1 owner    group               1 Mar  6 21:11 CurrentYear.txt
                



If you require the time and year to be displayed, change to the MS-DOS directory listing style. To do this, perform the following steps:

  1. Open the IIS Microsoft Management Console (MMC).
  2. Edit the properties for the FTP service.
  3. On the Home Directory tab, change the Directory Listing Style to MS-DOS.
  4. Click OK.
  5. Restart the FTP service.

After you make this change, the directory listing appears as follows:

ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
06-03-99  10:57PM                    1 NotCurrentYear.txt
03-06-00  09:11PM                    1 CurrentYear.txt
                


Additional query words: FTP UNIX date time timestamp year

Keywords: kbhowto KB256312