Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myprogram.exe param1
- start myProgram.exe param1
- exit
- START rest-of-your-program-name
- @echo off
- notepad c:test.txt
- @echo off
- start notepad c:test.txt
- start "name" /B myprogram.exe param1
- start /b myProgram.exe params...
- wscript.exe invis.vbs myProgram.exe %*
- set args = WScript.Arguments
- num = args.Count
- if num = 0 then
- WScript.Echo "Usage: [CScript | WScript] invis.vbs aScript.bat <some script arguments>"
- WScript.Quit 1
- end if
- sargs = ""
- if num > 1 then
- sargs = " "
- for k = 1 to num - 1
- anArg = args.Item(k)
- sargs = sargs & anArg & " "
- next
- end if
- Set WshShell = WScript.CreateObject("WScript.Shell")
- WshShell.Run """" & WScript.Arguments(0) & """" & sargs, 0, False
Add Comment
Please, Sign In to add comment