I have a winform application and this winform application has created few files. I want to implement "find target" function in my application to show those files. Those files located in a same folder. See the picture:
Let's say that I have created few files in "C:\Test\"
folder and this folder has this file: "C:\Test\File1.txt"
. How to create "find target" functionality using VB.NET?
Double-click on the shortcut, and Windows File Explorer will open to the folder you’ve specified. Windows File Explorer open on a specified folder. Click for larger image. (Screenshot: askleo.com)
Just follow any one of the below methods to open a second file explorer window. 1. Use Keyboard Shortcut to Open a Second File Explorer Window. The easiest way to open second, third or any number of file explorer windows is to use the good old keyboard shortcut. When you want to open multiple file explorer Windows, just press the shortcut Win + E.
Once you find the executable file (explorer.exe), right-click it and navigate to the Create Shortcut menu item. The system will locate the new shortcut file to your Desktop by default. If you double-click that shortcut it will open File Explorer in Quick Access as it did before.
While in File Explorer (Win+E), select one or more folders, libraries, and/or drives. (see screenshot below) 2. Click/tap on the File tab on the menu bar, and: A) Click/tap on Open new window.
Use Process.Start()
to start the Windows Explorer:
Process.Start("explorer.exe", "/select," & "FILETOSELECT")
With the /select, [file]
parameter, you can highlight the file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With