Computing.Net > Forums > Windows XP > Dos Commands in Windows Xp

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Dos Commands in Windows Xp

Reply to Message Icon

Name: nagki
Date: August 28, 2004 at 04:50:34 Pacific
OS: Windows Xp
CPU/Ram: 2.4 ghz
Comment:

Hi,
is there any command in Dos for searching a file by specifying a root folder and a part of file name as search string like normal windows search utility.

thanx in advance

--nagki---



Sponsored Link
Ads by Google

Response Number 1
Name: XpUser
Date: August 28, 2004 at 04:58:03 Pacific
Reply:

c:\>find /?
Searches for a text string in a file or files.

FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "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.
/OFF[LINE] Do not skip files with offline attribute set.
"string" Specifies the text string to find.
[drive:][path]filename
Specifies a file or files to search.

If a path is not specified, FIND searches the text typed at the prompt or piped from another command.

Does this help?

i_XpUser


0

Response Number 2
Name: nagki
Date: August 28, 2004 at 06:20:19 Pacific
Reply:

Hi XpUser,

thanx for ur quick response..
But my requirement is different...
i don't want to search the text in files..
i want a search based on only file name and it's extension...
what i want is to list all .txt files in specified root folder with file names matching some string.

--nagki---


0

Response Number 3
Name: salgolf
Date: August 28, 2004 at 07:12:39 Pacific
Reply:

Open Windows Explorer. Go to the folder you want to search in. Right click on it, and hit search. Then enter *.txt in the search for file name box and run the search. Be sure to go to Advanced Optionss and be sure search sub-folders is checked.


0

Response Number 4
Name: nagki
Date: August 28, 2004 at 09:38:22 Pacific
Reply:

I Want a way to do it from command prompt...

--nagki---


0

Response Number 5
Name: DocMemory
Date: August 28, 2004 at 10:09:54 Pacific
Reply:

I don't recall DOS ever having such a function.
You might go into DOS and try "help dir" and see if some of the sorting switches might help you sort through things more easily.
Does anyone remember the command which lists all the dos commands?

"Two roads diverged in a wood, and I - I took the one less travelled by, And that has made all the difference." Frost


0

Related Posts

See More



Response Number 6
Name: XpUser
Date: August 28, 2004 at 13:02:01 Pacific
Reply:

Does anyone remember the command which lists all the dos commands?

I guess this may be it?

Windows XP's DOS Commands

There's also a syntax tutor available at that site. Oh dear..I used to love DOS for years and have at first resisted Windows 3.0. Then my memory of DOS began to vanish....:-(

i_XpUser


0

Response Number 7
Name: Sandman
Date: August 28, 2004 at 17:28:14 Pacific
Reply:

Cheap and easy, just how I like them :O

Goto the folder you want to seach and enter this command. You can also use cd\ to goto the root of the drive so you can search an entire drive.

cd\
dir /s /b FILEYOUWANT.exe

Hope this helps,
Sandman
---------------
Which of the following is true?
A. God created man
B. Man created God


0

Response Number 8
Name: nagki
Date: August 29, 2004 at 10:46:19 Pacific
Reply:

Hi sandman,

thanx for ur tip..

--nagki---


0

Response Number 9
Name: Sandman
Date: August 29, 2004 at 14:48:11 Pacific
Reply:

Glad I could help :)

Sandman
---------------
Which of the following is true?
A. God created man
B. Man created God


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Dos Commands in Windows Xp

FTP through DOS Command in XP www.computing.net/answers/windows-xp/ftp-through-dos-command-in-xp/147082.html

DOS Support in Windows XP? issues? www.computing.net/answers/windows-xp/dos-support-in-windows-xp-issues/17845.html

Dos Program in Windows XP www.computing.net/answers/windows-xp/dos-program-in-windows-xp/114320.html