Difference between revisions of "Computer Productivity Hacks"
Jump to navigation
Jump to search
(Windows Command Line) |
(How can one extract the names of files in a folder as text? [closed]) |
||
Line 8: | Line 8: | ||
* [http://pcsupport.about.com/od/commandlinereference/p/xcopy-command.htm Xcopy] | * [http://pcsupport.about.com/od/commandlinereference/p/xcopy-command.htm Xcopy] | ||
: The xcopy command is a Command Prompt command used to copy one or more files and/or folders from one location to another location. | : 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 === | ||
+ | * [http://stackoverflow.com/questions/932356/how-can-one-extract-the-names-of-files-in-a-folder-as-text How can one extract the names of files in a folder as text?] | ||
+ | : Example: <code>C:\Users\me\Downloads\MyFolder> <span style="color:DarkOrange">dir /b > filelist.txt</span></code> | ||
+ | :: (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 == | == Folder & File Compression == |
Revision as of 10:28, 3 February 2014
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.