Set shell = CreateObject("WScript.Shell") shell.Run "cmd.exe /c echo wscript-ok > D:\project\logs\wscript-launch-test.out.log", 0, False