Ok guys i know this is probably simple one, i just cant figure it out.
I'm using the shell function to run a third party utility called "psexec" to exectue programs on remote machines. I'm trying to find a way of setting the remote computer name as a variable, which is passed from a text box to a shell command, but i just cant get it too work. i've tried the following.
All i want is to pass a text box entry to the variable called "remotepc", which i can use the "shell" function.
Private Sub Command1_Click()
Dim remotepc as string
dim params as string
text1.text = remotepc
params = "-i -c -f -d \\Server1\test\client.exe"
Shell "\\server1\users\ribuck\everyone\Antivirus\psexec.exe" & remotepc & params