How to create a text file list of the contents of a folder

Aaron CozortBlog, CMD (Command Prompt), Tips & Tricks, Tutorials, WindowsLeave a Comment

Original content from: Microsoft Support Website (https://support.microsoft.com/kb/196158)

Summary: This article describes how to create or print a list of files in a folder at a command prompt. This procedure may be useful when you view or print a list of the contents in a folder.

 

How to Create a File List at a Command Prompt

  1. Click Start, point to Programs, and then click MS-DOS Prompt (or Command Prompt in Windows NT).
  2. At a command prompt, locate the drive that contains the folder whose contents you want to list. For example, if you want to create a text file that contains a list of the contents of a folder on drive C, type the following command at a command prompt, and then press ENTER:
    c:
  3. At a command prompt, locate the folder whose contents you want to list. For example, if you want to create a text file that contains a list of the contents in the Windows folder on drive C, type the following commands at a command prompt, and press ENTER after you type each command:
    cd
     cd windows
  4. Type the following command at a command prompt, and then press ENTER, where filename is the name of the text file that you are creating:
    dir > filename.txt

    For example, if you want to create a file named Windowsfolderlist.txt, type the following command at a command prompt, and then press ENTER:

    dir > windowsfolderlist.txt

    NOTE: The text file that you create is located in the folder that you are in when you follow these steps. In the earlier example, the Windowsfolderlist.txt file is located in the Windows folder.

  5. Use a text editor, such as Notepad, to view or print this file.

NOTE: You cannot export or print a list of the files that are contained in a folder in Windows Explorer.

https://support.microsoft.com/kb/196158

RUFUS – Create DOS bootable USB drive in Windows

Aaron CozortBIOS, DOS, hardware, motherboards, TutorialsLeave a Comment

2013-07-03_15-53-05

 

How to Create a Bootable DOS USB Drive

(original article from: https://www.howtogeek.com/136987/how-to-create-a-bootable-dos-usb-drive/)

usb-drive-with-dos-header

DOS isn’t widely used anymore, but you wouldn’t know if from reading instructions written by manufacturers for BIOS updates, firmware-updating utilities, and other low-level system tools. They will often require you to boot into DOS and run the utility.

We once formatted our floppy disks with MS-DOS using the format utility built into Windows, but most computers don’t have floppy disk drives anymore. They may not even have optical disc drives!

Use Rufus

Windows won’t allow you to select the “Create an MS-DOS startup disk” option when formatting a USB drive – it’s grayed out. We will be using Rufus instead. It’s a fast, lightweight application that includes FreeDOS.

Download Rufus and launch it. Rufus doesn’t require any installation – you will see the Rufus application as soon as you launch the downloaded .exe file.

Creating a bootable USB drive with DOS is simple:

  1. Connect your USB drive to the computer and select it in the Device box.
  2. Ensure the “Create a bootable disk using” checkbox is enabled and ensure FreeDOS is selected. (Rufus includes FreeDOS, so you won’t have to download anything else.)
  3. Click the Start button. This will erase the contents of your USB drive! Back up any important files on the USB drive first.

These should be the default options, so you may not even have to configure Rufus at all. The process should be extremely quick – it took five seconds on our system.

Copy Your Files Over

You have probably created this boot drive because you have a DOS-based program to run, such as a BIOS update utility or another low-level system program. To actually run these files from DOS, you will need to copy them over to your USB drive. For example, you may have a BIOS.BIN and FLASHBIOS.BAT file you need to run in DOS. Copy these files into the root directory of the USB drive after formatting it.

Boot Into DOS

You can now boot into DOS by restarting your computer. If your computer does not automatically boot from the USB drive, you may need to change your boot order or use a boot menu to select the device you want to boot from.

Once you are in DOS, you can run the program you copied to your USB drive by typing its name at the DOS prompt. Follow any instructions provided in the manufacturer’s documentation to run the application.


These utilities still use DOS to ensure they have low-level access to the hardware without any other programs interfering or Windows getting in the way. This helps ensure BIOS updates and other low-level operations work properly.

You could use a bootable USB drive to run old DOS applications, but you would be better off using DOSBOX to run old DOS games and other applications.