Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'RunHide v1.0.1
- 'https://pastebin.com/u/jcunews
- 'https://www.reddit.com/user/jcunews1
- 'https://greasyfork.org/en/users/85671-jcunews
- '
- 'Runs given application file and optional arguments, or open given
- 'document file with its assotiated application with its GUI hidden.
- 'Note: applications have rights to ignore the suggested GUI preference.
- wait = false
- prog = ""
- params = ""
- for each p in wscript.arguments
- if prog = "" then
- if ucase(p) = "/WAIT" then
- wait = true
- else
- prog = """" & p & """"
- end if
- elseif instr(p, " ") > 0 then
- params = params & " """ & p & """"
- else
- params = params & " " & p
- end if
- next
- if prog = "" then
- wscript.echo "Usage: RunHide [/wait] {program} [arguments...]"
- wscript.quit
- end if
- createobject("wscript.shell").run prog & params, 0, wait
Add Comment
Please, Sign In to add comment