Solution is as below:
Option explicit
dim objShell
CopyAFile "\\****\ccmsetup", "c:\windows\ccmsetup", "ccmsetup.exe"
‘Format for the above cmd is CopyAFile “FQDN SOURCEPATH (no ip’s) , DESTINATION PATH, FILENAME
Function CopyAFile( Byval strSourceFolder, Byval strTargetFolder, Byval...
I added
DNSSUFFIX=****.*****", 0, true)
in the hopes of getting it to wait and thats when it errors out. When it ends like
DNSSUFFIX=****.*****")
It doesn't error out, but it terminates as soon as the vbs finishes.
this is the current method, but it fails with an error about using () when called in this manner?
<code>
Const DestinationFile = "c:\windows\ccmsetup\ccmsetup.exe"
Const SourceFile = "\\****\*****\ccmsetup\ccmsetup.exe"
dim objShell
Set fso = CreateObject("Scripting.FileSystemObject")
Set...
I am looking for a method to call either an EXE or a bat file at startup (in a domain environment as a GPO startup script) and have it run in the background with admin rights (granted during startup script already).
The problem I have is that I call ccmsetup.exe and it runs ok. If the pc is way...
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.