text stringlengths 0 4.23k |
|---|
Use the following expression as part of a larger expression to match any string beginning with b and ending with ing: b.*ing |
b.*ing |
To search for multiple strings in a set of files, you must create a text file that contains each search criterion on a separate line. |
Use spaces to separate multiple search strings unless the argument is prefixed with /c. |
Examples |
To search for hello or there in file x.y, type: |
findstr hello there x.y |
To search for hello there in file x.y, type: |
findstr /c:"hello there" x.y |
To find all occurrences of the word Windows (with an initial capital letter W) in the file proposal.txt, type: |
findstr Windows proposal.txt |
To search every file in the current directory and all subdirectories that contained the word Windows, regardless of the letter case, type: |
findstr /s /i Windows *.* |
To find all occurrences of lines that begin with FOR and are preceded by zero or more spaces (as in a computer program loop), and to display the line number where each occurrence is found, type: |
findstr /b /n /r /c:^ *FOR *.bas |
To list the exact files that you want to search in a text file, use the search criteria in the file stringlist.txt, to search the files listed in filelist.txt, and then to store the results in the file results.out, type: |
findstr /g:stringlist.txt /f:filelist.txt > results.out |
To list every file containing the word computer within the current directory and all subdirectories, regardless of case, type: |
findstr /s /i /m \<computer\> *.* |
To list every file containing the word computer and any other words that begin with comp, (such as compliment and compete), type: |
findstr /s /i /m \<comp.* *.* |
finger |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Displays information about users on a specified remote computer (typically a computer running UNIX) that is running the finger service or daemon. The remote computer specifies the format and output of the user information display. Used without parameters, finger displays help. |
Important |
This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network Connections. |
Syntax |
finger [-l] [<user>] [@<host>] [...] |
Parameters |
Parameter |
Description |
-l |
Displays user information in long list format. |
<user> |
Specifies the user about which you want information. If you omit the user parameter, this command displays information about all users on the specified computer. |
@<host> |
Specifies the remote computer running the finger service where you are looking for user information. You can specify a computer name or IP address. |
/? |
Displays help at the command prompt. |
<user> |
@<host> |
Remarks |
You must prefix finger parameters with a hyphen (-) rather than a slash (/). |
Multiple user@host parameters can be specified. |
user@host |
Examples |
To display information for user1 on the computer users.microsoft.com, type: |
finger user1@users.microsoft.com |
To display information for all users on the computer users.microsoft.com, type: |
finger @users.microsoft.com |
flattemp |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Enables or disables flat temporary folders. You must have administrative credentials to run this command. |
Note |
This command is only available if you have installed the Remote Desktop Session Host role service. |
Syntax |
flattemp {/query | /enable | /disable} |
Parameters |
Parameter |
Description |
/query |
Queries the current setting. |
/enable |
Enables flat temporary folders. Users will share the temporary folder unless the temporary folder resides in the user's home folder. |
/disable |
Disables flat temporary folders. Each user's temporary folder will reside in a separate folder (determined by the user's Session ID). |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.