映射网络驱动器”手动访问的对话框。是否有任何编程方式可以直接打开它,例如使用 VBScript 或 PowerShell 命令(不是通过触发-6ren">
gpt4 book ai didi

windows - 以编程方式打开 Windows 7 "Map Network Drive"对话框

转载 作者:可可西里 更新时间:2023-11-01 14:41:15 24 4
gpt4 key购买 nike

我正在尝试打开可通过 Windows 7 上的“计算机 > 映射网络驱动器”手动访问的对话框。是否有任何编程方式可以直接打开它,例如使用 VBScript 或 PowerShell 命令(不是通过触发鼠标或键盘事件)?我知道 net use ... shell 命令,但我特别想显示该对话框。

最佳答案

使用 rundll32.exe 从脚本中弹出 GUI。它的行为就像您单击按钮一样。

RUNDLL32 SHELL32.DLL,SHHelpShortcuts_RunDLL Connect

enter image description here

包含额外技巧的链接。映射网络驱动器在列表中排名第 24。

http://www.robvanderwoude.com/rundll.php

关于windows - 以编程方式打开 Windows 7 "Map Network Drive"对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25951703/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com