Finding a File On Your Hard Drive

  Finding a File On Your Hard Drive:-

                                                                          If you know a files name and you want to look for it in the current directory, its common knowledge that the DIR command will do the job. (eg. DIR WHATEVER.TXT) But if you're not sure which subdirectory it's in, you can add a couple of switches to the DIR command. (eg. DIR WHATEVER.TXT /S/B). The /S switch tells it to check all subdirectories. The /B switch has the effect of producing a condensed list of matches. Without this switch, DOS organizes matches under subdirectory headings. This command provides the complete path to the files matching your search criteria.
Another method is to use the ATTRIB command with a /S switch. (eg. ATTRIB WHATEVER.TXT /S). This brings up the same list but has the added bonus of telling you which attributes are set on the file. The /B switch is not required, nor available with the ATTRIB command.

Read Users' Comments (0)

0 Response to "Finding a File On Your Hard Drive"

Post a Comment