Quantcast
Channel: Wsus Package Publisher
Viewing all articles
Browse latest Browse all 3825

New Post: Copy a file to windows dir

$
0
0
This is a VbScript to copy a file to C:\Windows\
On Error Resume next
Dim fso
Set fso = WScript.CreateObject("Scripting.Filesystemobject")

Err = 0
Call fso.CopyFile("saplogon.ini", "c:\windows\saplogon.ini", True)

WScript.Quit(Err)
And this is the CustomeUpdate you should make : (in this example, the VbScript is named CopyFile.vbs)

CustomUpdate CopyFile

Do not forget to add the VbScript and the SapLogon.ini as additionnal files :

Additionnal Files

If you don't have the return code feature in the ScriptElement, send me a mail to package.publisher@free.fr, I will send you the latest compiled release with this feature.

Viewing all articles
Browse latest Browse all 3825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>