Find Command In Windows Server 2008

This article explains the Find command in Windows Server 2008 operating system and syntax related with it.
  • 2499

Introduction

Find command in Windows server 2008 is used to search for a specific text string in one file or more than one files. The command sends the specified lines the standard output device. Syntax used for Find command is given below.

Syntax

find [/v] [/c] [/n] [/i] [/off[line]] "<String>" [[<Drive>: [<Path>] <FileName> [ . . . ]]

Parameters For Find

Parameter Description
/v Shows all lines that do not contain the specified <String>.
/c Counts the lines that contain the specified <String>and displays the total.
/n Precedes each line with the file's line number.
/i Defines that the search is not case-sensitive.
[/off[line]] Does not skip files that have the offline attribute set.
"<String>" Defines the group of characters that user want to search for.
[<Drive>:][<Path>]<FileName> Defines the location and name of the file in which to search for the specified string.
/? Shows help at the command prompt.

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.