Home arrow Tutorial arrow Windows arrow Windows command-prompt tutorial
Wednesday, 24 April 2024
Windows command-prompt tutorial PDF Print E-mail
Written by Fred   
Tuesday, 30 December 2008
ImageI find that a good old command prompt is a great tool when performing my evryday job. I can do repetitive tasks by scripting them in a .bat file or I can just type them at the command prompt. You will find here after some useful commands to save time on the Windows command promt.

Files and directories management

  • Delete a directory and all its sub-directories and their contents :
    rmdir /s /q [Directory]
  • Copy a directory with all its sub-directories and their contents :
    xcopy [Source Dir] [Dest Dir] /E /C /R /H /I /K /Y
  • List only the files and/or folders whose names match a pattern :
    dir /S /B [pattern]
    where [pattern] accepts special characters * and ?.
Last Updated ( Saturday, 06 April 2013 )
 
< Prev   Next >