All Forums >> [Scripting] >> WSH & Client Side VBScript >> Executing DOS commands using VBScript Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Hi I'm trying to execute a vbscript which copies content from file server to another client machine, I m using client IP add as input variable "ipAdd". But the following code does not execute. Please help me. Code goes here:
Dim ipAdd ipAdd = InputBox("Enter the IP address:") Set WshShell = CreateObject("WScript.Shell") WshShell.Run "CMD /K CD C: & COPY \\some_ip_address\appsxp\jre.1.6.0\Files\JRE.1.6.0.EXE \\&ipAdd\C$" Set wshShell = Nothing 'Finish