|
Answer» Is there a DOS Utility that I can download for installation into DOS 5 or 6.22 that will permit me to use the find "TEXT string" command by SEARCHING for the string in all of the files in a subdirectory?
Also, when using a computer that does not have dos but instead has a dos environment, how do I type the gaps that are in the folder names. I.e. what wildcard is used?find.exe is part of DOS 6.22
FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[ ...]]
/V Displays all lines NOT containing the specified string. /C Displays only the count of lines containing the string. /N Displays line numbers with the displayed lines. /I Ignores the case of characters when searching for the string. "string" Specifies the text string to find. [drive:][path]filename Specifies a file or files to search.
If a pathname is not specified, FIND searches the text typed at the prompt or piped from another command.
What gaps in folder names do you mean?I think the second paragraph up from bottom applies to that about which I am asking, concerning what I would type at the dos prompt to have the Find command search a subfolder for the string.
I am, as people know, talking about a dos based computer. My version 5 has Find in it. I asked on another board if later computers made for NT and 98, when installed with dos only after a format, would have more dos commands in it because of the hardware. Concerning the gaps, I realised after posting here that this is in the dos environments that are in XP. LET's say I have a cd with loads of subfolders in it that was burned in XP, and I put it in a cd drive using a dos based laptop's exterior cd rw drive to look through the subfolders thereof at the dos prompt. I can type these . . .
Let us say instead that I using a computer with xp in it and only a cd r drive. So the subfolder I want has been copied to the hard drive, yes? And for whatever reason I want to look in the subfolder in the dos environment. How do I type the gaps in the folder names such as My DOCUMENTS?
The dos environment - a program in XP that simulates dos but is not an actual dos - does not recognise the gaps, nor does it compress the folder names to 8 characters.When you say "gaps" in folder names, do you mean spaces? Quote from: TheFinalShowdownIr on September 22, 2007, 10:27:35 AM I asked on another board if later computers made for NT and 98, when installed with dos only after a format, would have more dos commands in it because of the hardware. No!!!!
QuoteLet's say I have a cd with loads of subfolders in it that was burned in XP, and I put it in a cd drive using a dos based laptop's exterior cd rw drive to look through the subfolders thereof at the dos prompt. MS-DOS will show short file names
QuoteHow do I type the gaps in the folder names such as My Documents? Ah! You DO mean "spaces".
You type with quotes
DIR "My Documents"
COPY "A filename with spaces.txt" "c:\A folder name with spaces\a sub folder"
etc
Thanks for the replies, I will try this.
|