Hello. I need to copy an .exe from it's source location to c:\windows\system32. For example, I have a package that contains sleep.exe, several images, and a hta. This package will be deployed through SMS and each source will be different. I tried using the below but I cannot get it to work properly. The only copying I have done is from a static source.
Any advice would be appreciated?
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "sleep.exe" , "C:\windows\system32", OverwriteExisting