This will do what you wanted:
Dim fso, WshShell, SourceFile, DestFile
DestFile = "c:\windows\tools\filename.exe" 'Local workstation file
SourceFile = "\\ServerName\ShareName\FileName.exe" 'Remote server file
Set fso = CreateObject("scripting.filesystemobject")
set WshShell =...
I'm trying to write a wmi query that will resolve a host.
The person who will search for the host might not know the full name of the host.
The script bellow was checked on Windows 2003 server.
I am basing my syntax on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.