Computer Productivity Hacks
Revision as of 21:51, 7 February 2014 by Dave (talk | contribs) (→Command Line: How to get a list of sub-folders and their files, ordered by folder-names)
Command Line
- Quick super fast course in using the command line. It is intended to be done rapidly in about a day or two, and not meant to teach you advanced shell usage.
- Works with cmd.exe, but doesn't seem to work with Windows PowerShell.
Windows Command Line
- Robocopy: A robust file copy command for the Windows command line.
- Each command is linked to more info about the particular command.
- The xcopy command is a Command Prompt command used to copy one or more files and/or folders from one location to another location.
Generate File List
- Example:
C:\Users\me\Downloads\MyFolder> dir /b > filelist.txt
- (The text in orange shows the command used once you've navigated into the directory from which you want to generate the list of file names.)
Folder & File Compression
- Example:
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X\"
- To compress a folder without using any particular compression software.