Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

[Help] Suppress Output from cmd?

- - - - -

  • Please log in to reply
3 replies to this topic

#1
ODC

ODC

    Member

  • Member
  • PipPip
  • 127 posts
I am creating some shortcuts to start some process at a higher level. This is easy accomplished with, for example:
C:\WINDOWS\system32\cmd.exe /c start "runhigh" /high "C:\Program Files\AppFolder\Appname.exe"

However, this causes a command prompt window to quickly open when the command is executed, then close when finished. Is there a way to suppress this window?

Edited by ODC, 08 May 2006 - 12:20 PM.



How to remove advertisement from MSFN

#2
mhc

mhc

    Newbie

  • Member
  • 21 posts
Set up the shortcut to run minimized...that should do the trick.

mhc

#3
Phurious

Phurious

    Newbie

  • Member
  • 36 posts
I know this sounds weird, but you could call the command from within a VBScript, and have it supress the CMD window.

Option Explicit
Dim oShell
Set oShell = CreateObject("WScript.Shell")

oShell.Run "C:\WINDOWS\system32\cmd.exe /c start " & Chr(34) &  "runhigh" & Chr(34) & " /high " & Chr(34) & "C:\Program Files\AppFolder\Appname.exe" & Chr(34),0,True


#4
ophiel

ophiel

    Beatbox Rocker

  • Member
  • Pip
  • 65 posts
extract cmdow.zip to windows\system32 and then run your batch file like this:

cmdow @ /HID

C:\WINDOWS\system32\cmd.exe /c start "runhigh" /high "C:\Program Files\AppFolder\Appname.exe"

exit

Edited by ophiel, 08 May 2006 - 06:49 PM.

banned because of attitude against crew and fellow members.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN