vb.net帮助与按钮上的unc路径单击 [英] vb.net help with unc path on a button click
问题描述
下午好,
我有一个脚本,当您输入计算机名称时,它将打开一个资源管理器窗口并连接到远程计算机的temp文件夹.
我目前正在编写一个应用程序,希望将其包含在按钮单击中.
我已经声明了机器名称.这是我的代码.
私有 子 UNC_Menuitem1_Click( ByVal 发件人 As 系统.对象,e As System.EventArgs)句柄 UNC_MenuItem1.Click
strComputer = Machine_Name_Textbox_Header.Text
objWshShell = CreateObject(" )
objWshShell.run(" + strComputer + \ c $")
结束 子
我打开了资源管理器窗口,但无法将其用于远程计算机.我将如何获得一个按钮的任何帮助将非常有用,方法是单击打开浏览器窗口以访问另一台计算机的temp文件夹.
结束 子
我打开了资源管理器窗口,但无法将其用于远程计算机.任何帮助都将极大地帮助我如何有一个按钮,单击打开浏览器窗口以打开另一台机器的temp文件夹.
一件事是,如果您使用的是管理共享,例如c
,您是否具有适当的特权(管理员)可以在远程计算机上访问它?
Good afternoon,
I have a script that when you enter the machine name it will open a explorer window and connect to the remote machines temp folder.
I m currently writing an application that i want to include that in a button click.
I have declared the machine name. Here is my code.
Private Sub UNC_Menuitem1_Click(ByVal sender As System.Object, e As System.EventArgs) Handles UNC_MenuItem1.Click
strComputer = Machine_Name_Textbox_Header.Text
objWshShell = CreateObject("Wscript.Shell")
objWshShell.run("explorer.exe \\" + strComputer + "\c$")
End Sub
I get the explorer window to open up but i cant get it to do it to the remote machine. Any help would be great on how i can have a button click open a explorer windows to another machines temp folder.
") End Sub
I get the explorer window to open up but i cant get it to do it to the remote machine. Any help would be great on how i can have a button click open a explorer windows to another machines temp folder.
One thing is that if your using administrative shares such as c
, do you have proper privileges (admin) to access it on the remote machine?
这篇关于vb.net帮助与按钮上的unc路径单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!