[英]How do I programmatically open the “Libraries” folder in Windows Explorer in Windows 7?
[英]How do I open a windows explorer window with a specific folder selected
我有一個 winform 應用程序,這個 winform 應用程序創建了幾個文件。 我想在我的應用程序中實現“查找目標”function 以顯示這些文件。 這些文件位於同一文件夾中。 看圖片:
假設我在"C:\Test\"
文件夾中創建了幾個文件,並且這個文件夾有這個文件: "C:\Test\File1.txt"
。 如何使用 VB.NET 創建“查找目標”功能?
使用Process.Start()
啟動 Windows Explorer:
Process.Start("explorer.exe", "/select," & "FILETOSELECT")
使用/select, [file]
參數,您可以突出顯示文件。
看看這篇文章,它指定了 arguments,explorer.exe 接受
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.