This article was previously published under Q74166
This article has been archived. It is offered "as is" and will no longer be updated.
Temporary files having a zero byte size can be seen if the DIRcommand is issued with a pipe symbol and parameters MORE or SORT. Thesefiles are seen when the DIR command is listing files residing in thetemporary directory.
If the temporary directory is set to be: C:\windows\tempand the current directory is C:\windows\temp, then the followingexamples of commands will show the temporary DOS files:
dir | more dir | sort
The files can also be seen if the current directory is not the temporarydirectory by including a path as shown below:
dir C:\windows\temp | more dir \windows\temp |sort
The files will appear as eight-character files with no fileextensions. They will have zero bytes and will be stamped with thedate and time that the command was given, as follows:
If you don't use the pipe parameter, these files will not be visible.They are temporary and are deleted immediately after the command isfinished executing.
This information applies to MS-DOS version 5.0. In versions previousto 5.0, the temporary files were not created in the directoryspecified by the temp variable, but rather in the root directory ofthe active drive.