Saturday, May 12, 2012

How To Find A File In MS-DOS?

Hello friends with MS-DOS it is possible to find any file on your computer, providing you know the name of the file or the program that the file was created in.

If you are unsure where the file may be on the computer, you must be at the root directory of the computer. Meaning, you must be at C:\> to get to this prompt, type cd\

Once at the root directory or the directory you believe the file to be in, type any of the below commands.

If, for example, you knew that the file had bob somewhere in the file you would type:

dir *bob*.* /s

In the above example you will utilize the wild character, which in MS-DOS is the asterisks ( * ). In addition to the asterisks, I utilize the /s that tells the dir command to search the current directory and all directories there after.

If you cannot recall any of the names of the files but recall that they were created in Microsoft Excel you could, for example, type:

dir *.xls /s

In the above example, knowing that Excel files always end with .xls, I again use the wild character, telling the computer to search for any file ending with .xls.


   /p will will display the results one page at a time.




Thanks Guys.....

No comments:

Post a Comment

Please Give Me Your Views

Popular Posts