User Tools

Site Tools


start:explorer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start:explorer [2017/02/09 14:15]
andre [Command Prompt File Search]
start:explorer [2018/01/18 10:17] (current)
andre [Copy path]
Line 43: Line 43:
 ===== Copy path ===== ===== Copy path =====
  
-  * Shift + right click on file+  * ''​Shift'' ​''​right click'' ​on one file or multiple files 
 +  * Copy as path
  
 ===== PSD conversion folder locations ===== ===== PSD conversion folder locations =====
Line 55: Line 56:
  
 ''​dir''​ command can be used to list the files from command prompt. This article explains the syntax for different usecases. ''​dir''​ command can be used to list the files from command prompt. This article explains the syntax for different usecases.
-  * A simple dir command without any other arguments lists all the files/​subfolders that exist in the current folder.<​code>​dir</​code>​+  * A simple ​''​dir'' ​command without any other arguments lists all the files/​subfolders that exist in the current folder.<​code>​dir</​code>​
   * Lists the subfolders/​files names in bare format.<​code>​dir /​b</​code>​This command prints the file names. No other file meta data like file modified time, file size etc are not displayed.   * Lists the subfolders/​files names in bare format.<​code>​dir /​b</​code>​This command prints the file names. No other file meta data like file modified time, file size etc are not displayed.
   * List the files in the current folder and also the ones in the subfolders recursively.<​code>​dir /​s</​code>​   * List the files in the current folder and also the ones in the subfolders recursively.<​code>​dir /​s</​code>​
Line 61: Line 62:
 ===== Using wild cards with dir ===== ===== Using wild cards with dir =====
  
-Dir command accepts wild cards to display information only for the files that match the pattern specified. The below examples illustrate different use cases where we can use these wild cards +''​dir'' ​command accepts wild cards to display information only for the files that match the pattern specified. The below examples illustrate different use cases where we can use these wild cards 
-  * List files of certain type or based on extension\\ For example to list all jpeg files in the current folder, we can run the below command.<​code>​dir *.jpeg</​code>​To list all excel files<​code>​dir *.xls</​code>​We can even specify multiple extension in dir command to list files of any of the types. To list all files created with Office applications like Word, Excel, Powerpoint etc we can run below command.<​code>​dir *.docx *.xlsx *.pptx</​code>​+  * List files of certain type or based on extension\\ For example to list all jpeg files in the current folder, we can run the below command.<​code>​dir *.jpeg</​code>​To list all excel files<​code>​dir *.xls</​code>​We can even specify multiple extension in ''​dir'' ​command to list files of any of the types. To list all files created with Office applications like Word, Excel, Powerpoint etc we can run below command.<​code>​dir *.docx *.xlsx *.pptx</​code>​
   * List files beginning/​ending with specific pattern\\ List all files in the current folder whose names begin with ‘Picture-‘<​code>​dir /S Picture-*</​code>​   * List files beginning/​ending with specific pattern\\ List all files in the current folder whose names begin with ‘Picture-‘<​code>​dir /S Picture-*</​code>​
  
 ===== List file names based on type ===== ===== List file names based on type =====
  
-dir command can list the file names and also the subfolders names. We can be selective and say that we want only names of the files to be listed or only the names of the subdirectories to be listed.+''​dir'' ​command can list the file names and also the subfolders names. We can be selective and say that we want only names of the files to be listed or only the names of the subdirectories to be listed.
   * List only directories<​code>​dir /​A:​D</​code>​   * List only directories<​code>​dir /​A:​D</​code>​
   * List only files<​code>​dir /​A:​-D</​code>​   * List only files<​code>​dir /​A:​-D</​code>​
Line 73: Line 74:
 ===== Display files based on file attributes ===== ===== Display files based on file attributes =====
  
-We can filter out which files should be listed in the dir command output based on read-only, system, hidden archive file attributes.+We can filter out which files should be listed in the ''​dir'' ​command output based on read-only, system, hidden archive file attributes.
   * For example, to list read-only files in the current directory, the command is:<​code>​dir /​A:​R</​code>​   * For example, to list read-only files in the current directory, the command is:<​code>​dir /​A:​R</​code>​
   * Similarly to display hidden files<​code>​dir /​A:​H</​code>​   * Similarly to display hidden files<​code>​dir /​A:​H</​code>​
Line 84: Line 85:
  
   * Find out who owns a file<​code>​dir /​Q</​code>​Example:<​code>​c:​\>​dir /Q 1.txt   * Find out who owns a file<​code>​dir /​Q</​code>​Example:<​code>​c:​\>​dir /Q 1.txt
-05/​03/​2015 ​ 01:12 AM           ​151,​906 BUILTIN\Administrators 1.txt</​code>​The above result of dir indicates that file 1.txt is owned by Administrators group.+05/​03/​2015 ​ 01:12 AM           ​151,​906 BUILTIN\Administrators 1.txt</​code>​The above result of ''​dir'' ​indicates that file 1.txt is owned by Administrators group.
   * Get created time of a file<​code>​dir /​TC</​code>​   * Get created time of a file<​code>​dir /​TC</​code>​
   * Find last accessed time of a file<​code>​dir /​TA</​code>​   * Find last accessed time of a file<​code>​dir /​TA</​code>​
   * Find last modified time of a file<​code>​dir /​TW</​code>​   * Find last modified time of a file<​code>​dir /​TW</​code>​
start/explorer.1486678549.txt.gz · Last modified: 2017/02/09 14:15 by andre