There is a file named calender
in my pc, i forget where it is.
I want to get the position of it with the dir
command or some other command ?
dir c:\ | find "calender"
find: ‘calender’: No such file or directory
There is a file named calender
in my pc, i forget where it is.
I want to get the position of it with the dir
command or some other command ?
dir c:\ | find "calender"
find: ‘calender’: No such file or directory
Use the /s
switch to search all directories:
dir \calendar /s
If the filename is not exactly calendar
, then you can use *
as a wildcard (a placeholder for other stuff):
To search for files that start with calendar
:
dir \calendar* /s
To search for files that have calendar
anywhere in the name:
dir \*calendar* /s
And so on.
Also to remove all the information that DIR shows about the directory, such as file times etc, just use /b
as it will leave the full path and nothing else.