This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com.

Windows 95 and DOS - Directories to Text File

SUMMARY: Send a list of Windows 95 directories to a text file using DOS.

Do you need to place the contents of several directories into a text file? If so, the following DOS batch file should do the trick, placing the contents of up to 9 directories into file tempdir.txt in your WINDOWS temp directory.

@ECHO OFF
DIR %1 %2 %3 %4 %5 %6 %7 %8 %9> %TEMP%\tempdir.txt
notepad %TEMP%\tempdir.txt

Add this batch file to your Windows 95 "Send To" menu. Doing so will allow you to simply right-click on a folder, select "Send to TEXTDIR," and cause the contents of the folder to appear in filename TEXTDIR.


 

 

Press the "print" button on your browser or select "File" - "Print" to print this tip. Then, return to Windows 95 and DOS - Directories to Text File

Standard disclaimer applies - read http://malektips.com/disclaim.html