How to open a folder and select the specified file

xiaoxiao2021-03-06  40

Very simple, calling Explorer.exe, for example, to open H: / CD1 and select the readme.rtf in it:

Private submmand1_click ()

Shell "Explorer / SELECT, H: /CD1/readme.rtf", VBNORMALFOCUS

End Sub

[Windows Explorer Switches]]

Windows Explorer Switches Are USEful In CREATING ROOTED Folders:

Explorer [/ e] [, / root, ] [[, / select], ]

/ e Use Explorer View (Scope and Results Pane View). The default is Open view

/ root specify the object in the "Normal" Name Space That Is Used as the root (ie, local path "). The default is the desktop ./ SELECT THE Parent Folder Opens and The Specified Object Is Selected. Specify The folder unless. The default is the root.

转载请注明原文地址:https://www.9cbs.com/read-64610.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.051, SQL: 9