Accessibility Assistance

Skip to Content

Digital Library Center: Helpful Windows Commands

For creating large numbers of folders, use a simple program by creating a text file with

@echo off
CD c:

mkdir VID00001
mkdir VID00002

After putting in all of the folders/directories needed, rename the file to have the .bat extension. Then, double click the file and it will create all of the folders listed after "mkdir" and they'll all appear in the same folder where the .bat file is.

To get a list of filenames in a certain folder:

  • Open the command line (click on the Windows Start button, go to Run, and type cmd)
  • Use: the dir command to get a directory list and use the /b switch to show only filenames. Then, redirect the output to a text file ( > titles.txt) If you're already in the directory you need, type:
    • dir /b > titles.txt
  • To get a list from another directory, you can switch to that directory before running the command above. Or, use the directory path in the command above using this syntax:
    • dir w:\scan\general /b >titles.txt
  • The text file will be created in the same folder.