I have a simple app that allows me to browse files locally on my PC. I need some help figuring out how to code it to where I can also browse files on a specified remote PC by going to \\Computername\C$
I know that I can browse the contents of a remote PC's drive by typing in \\Computername\C$ in start>run and do it through explorer, but I need to be able to do it through my app instead.
Also, would like to see if there is a way to launch a .exe or .msi remotely through this file browser as well, on the targeted/remote machine.
I have been using PSTools>PSExec.exe to launch the .exe/.msi's on the target machine, but wouldn't mind being able to do it all through VB instead if possible.
Thanks everyone!
here is the code to the file browser I'm using:
Code:Private Sub Dir1_Change() File1.Path = Dir1.Path txtFileandPath.Text = "" End Sub ' Private Sub Drive1_Change() On Error Resume Next File1.Path = Drive1.Drive Dir1.Path = Drive1 Errmsg: If Drive1.Drive = LCase("A:") Then MsgBox LCase("" & Drive1.Drive & " drive error. " & Error$(Err)), 64 Else End If End Sub ' Private Sub File1_Click() txtFileandPath.Text = "" txtFileandPath.Text = Dir1.Path & "\" & File1.FileName Me.Caption = " " & Dir1.Path & "\" & File1.FileName End Sub


Reply With Quote

