Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

Searching for .exe-files and save result

Thanks for stopping by,

I need help with a command in CMD, hopefully, someone will be able to help me and that is appreciated.

[?] I need to search for all .exe files in a particular folder in C:\ and then save the result as a .txt - Is this possible to do with one command line? Yes, it must be one command and done in CMD.
This command:
dir /S "C:\Users\User\*.exe" > "C:\Users\User\result.txt"

Will search all exe files in "C:\Users\User\" and will search also in the sub folders (the '/S' flag) and will redirect the output to this ""C:\Users\User\result.txt" file.

Have fun.
(Feb 18, 2017 04:34 PM)Mr. Monkey Wrote:  This command:
dir /S "C:\Users\User\*.exe" > "C:\Users\User\result.txt"

Will search all exe files in "C:\Users\User\" and will search also in the sub folders (the '/S' flag) and will redirect the output to this ""C:\Users\User\result.txt" file.

Have fun.

Works perfect, thank you. I appreciate your help.
Ran into a new problem; so I want to list what's in a folder, how do I pause between each frame? If that makes any sense.

Can word it better if needed. It is from a written instruction.
(Feb 20, 2017 09:29 AM)Mαxim Wrote:  Ran into a new problem; so I want to list what's in a folder, how do I pause between each frame? If that makes any sense.

Can word it better if needed. It is from a written instruction.

Did you mean you want to show with a whole path ?
(Feb 20, 2017 10:36 AM)Hackoo Wrote:  Did you mean you want to show with a whole path ?

The question is worded real bad, then I have to translate it into English.

If you write the command "tree" in C:\ for example, how do you make it show one "screen" at the time?

Edit: tree c:\ /f | more worked

Thanks


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by Nemo2478Jul 25, 2020 12:01 PM 1 178 Jul 25, 2020 12:01 PM
Last Post: glitchgxd
[.NET] by aktmxj723Jul 4, 2020 06:40 PM 7 221 Jul 4, 2020 06:40 PM
Last Post: Roses
[.NET] by ToXiiCFeb 21, 2018 08:40 PM 7 196 Feb 21, 2018 08:40 PM
Last Post: gigajew