How to find a file in MS-DOS
2014-12-22 23:10
477 查看
You can find any file on your computer using MS-DOS 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 wildcard,
which in MS-DOS is the asterisks (
* ). In addition to the asterisks, we utilize the /s that tells the dir command to search the current directory and all directories thereafter.
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 (have file
extension) with .xls, we again use the wild character, telling the computer to search for any file ending with .xls. If you do not know what the extension of your file is, you can find a listing of the majority of extensions and the associated program
on our MS-DOS Extension page.
Finally, once you have found the file, you must interpret the output of your search and be able to then change directories to get to that file. Below is an example of the results found when typing dir *bob*.* /s as mentioned in an earlier example.
Volume in drive C has no label
Volume Serial Number is 214B-1DE8
Directory of C:\Computer Hope\Info\Files
GENMSBOB HTM 2,592 12-19-96 7:01p genmsbob.htm
1 file(s) 2,592 bytes
Directory of C:\Games\chessmaster\Personalities
BOBO CMX 2,584 09-10-99 1:00a BoBo.CMX
1 file(s) 2,584 bytes
Directory of C:\Games\Quake 2\baseq2\players1\Morbo
MORBOB~1 PCX 25,798 01-09-98 4:24a morboBASE.pcx
1 file(s) 25,798 bytes
Directory of C:\Windows MYBOB TXT 4 11-19-00 3:23p mybob.txt
1 file(s) 4 bytes
Total files listed:
4 file(s) 30,978 bytes
1 dir(s) 29,500.53 MB free
As you can see in the above example, several files were found that contain bob. If you receive more than expected results, you may need to type /p after the command. Using /p displays the results one page at a time. If, for example, the file
we were looking for was mybob.txt, looking above, we see that this file is in the C:\Windows directory.
How to find a file in Windows.
See the cd command page and dir
command page for further information about each of these commands.
Computer file extensions and related
information.
Information about long file
names.
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 wildcard,
which in MS-DOS is the asterisks (
* ). In addition to the asterisks, we utilize the /s that tells the dir command to search the current directory and all directories thereafter.
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 (have file
extension) with .xls, we again use the wild character, telling the computer to search for any file ending with .xls. If you do not know what the extension of your file is, you can find a listing of the majority of extensions and the associated program
on our MS-DOS Extension page.
Finally, once you have found the file, you must interpret the output of your search and be able to then change directories to get to that file. Below is an example of the results found when typing dir *bob*.* /s as mentioned in an earlier example.
Volume in drive C has no label
Volume Serial Number is 214B-1DE8
Directory of C:\Computer Hope\Info\Files
GENMSBOB HTM 2,592 12-19-96 7:01p genmsbob.htm
1 file(s) 2,592 bytes
Directory of C:\Games\chessmaster\Personalities
BOBO CMX 2,584 09-10-99 1:00a BoBo.CMX
1 file(s) 2,584 bytes
Directory of C:\Games\Quake 2\baseq2\players1\Morbo
MORBOB~1 PCX 25,798 01-09-98 4:24a morboBASE.pcx
1 file(s) 25,798 bytes
Directory of C:\Windows MYBOB TXT 4 11-19-00 3:23p mybob.txt
1 file(s) 4 bytes
Total files listed:
4 file(s) 30,978 bytes
1 dir(s) 29,500.53 MB free
As you can see in the above example, several files were found that contain bob. If you receive more than expected results, you may need to type /p after the command. Using /p displays the results one page at a time. If, for example, the file
we were looking for was mybob.txt, looking above, we see that this file is in the C:\Windows directory.
Additional information
How to find a file in Windows.See the cd command page and dir
command page for further information about each of these commands.
Computer file extensions and related
information.
Information about long file
names.
相关文章推荐
- How to find a file or folder in MS-DOS or Windows command line
- In C# how to find the mime type of a file
- How to Find Bapi for Particular Transaction in SAP
- how to open HxS(ms help 2.x file)
- how to use the code in ms ssrs
- How to migrate plug-in mmp file to satisfy new security request
- How to do sleep in bat file
- ABAP:How to Find Bapi for Particular Transaction in SAP
- How to mount filesystems in Linux
- How To Find The Top Wrinkle Cream In 5 Easy Steps
- How to edit project file in VS?
- How to find child controls that are located in the template of a parent control
- How to read Mac .DMG file in Linux or PC
- HOW TO: Upload a File to a Web Server in ASP.NET by Using Visual Basic .NET
- How to remove ^M in the file
- How to run a .BAT file in InstallShield?
- 核心驱动文件操作 How to access file in Kernel Driver
- How to find and fix faults in Linux applications.
- How To Enable or Disable Simple File Sharing in Windows XP
- How to Determine if a file is a .Net assembly (in Delphi and C#)