使用现有文件资源管理器的 CMD 提示符?
CMD prompt using existing file explorer?
我刚刚学会了在 cmd 提示符下使用文件资源管理器打开特定文件夹的简单命令。
http://www.vb-helper.com/howto_open_windows_explorer.html
explorer.exe /e, C:\users
是否可以检查我是否已经打开了一个文件资源管理器,我只是更改了路径?
我将使用 VB6 进行编码。
谢谢
我试过了。
Set sh= CreteObject("Shell.Application")
sh.navigate("c:\users",,"Explorer")
我得到的错误是"Compile error: Expected: ="
我尝试这种方式时出现同样的错误
Set sh = CreateObject("shell.application")
For Each w In sh
w.navigate("C:\Users",,Explorer)
Next
随机尝试。但仍然没有运气:
Shell.navigate("C:\Users", , "explorer")
在 Visual Basic 中使用 Shell.Application COM Object, enumerate its Windows
property, find the window you want and then use its Navigate
method 更改地址。
Dim sh As Shell
Set sh = New Shell
If sh.Application.Windows.Count > 0 Then
sh.Application.Windows.Item(0).Navigate "r:\"
End If
P.S。在 Project
菜单中,转到 References
,启用 Microsoft Shell Controls And Automation
。
我刚刚学会了在 cmd 提示符下使用文件资源管理器打开特定文件夹的简单命令。 http://www.vb-helper.com/howto_open_windows_explorer.html
explorer.exe /e, C:\users
是否可以检查我是否已经打开了一个文件资源管理器,我只是更改了路径?
我将使用 VB6 进行编码。
谢谢
我试过了。
Set sh= CreteObject("Shell.Application")
sh.navigate("c:\users",,"Explorer")
我得到的错误是"Compile error: Expected: ="
我尝试这种方式时出现同样的错误
Set sh = CreateObject("shell.application")
For Each w In sh
w.navigate("C:\Users",,Explorer)
Next
随机尝试。但仍然没有运气:
Shell.navigate("C:\Users", , "explorer")
在 Visual Basic 中使用 Shell.Application COM Object, enumerate its Windows
property, find the window you want and then use its Navigate
method 更改地址。
Dim sh As Shell
Set sh = New Shell
If sh.Application.Windows.Count > 0 Then
sh.Application.Windows.Item(0).Navigate "r:\"
End If
P.S。在 Project
菜单中,转到 References
,启用 Microsoft Shell Controls And Automation
。