MSFN Forum: [Help] Suppress Output from cmd? - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

If you have questions about customizing Windows XP that are nLite-specific, please post them in the nLite forum, not here. If you have questions regarding the unattended installation of Windows XP, please post them in the Unattended Windows 2000/XP/2003 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Help] Suppress Output from cmd? Rate Topic: -----

#1 User is offline   ODC 

  • Member
  • PipPip
  • Group: Members
  • Posts: 127
  • Joined: 22-June 04

  Posted 08 May 2006 - 12:18 PM

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?

This post has been edited by ODC: 08 May 2006 - 12:20 PM



#2 User is offline   mhc 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 02-May 06

Posted 08 May 2006 - 01:19 PM

Set up the shortcut to run minimized...that should do the trick.

mhc

#3 User is offline   Phurious 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 02-March 04

Posted 08 May 2006 - 06:41 PM

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 User is offline   ophiel 

  • Beatbox Rocker
  • Pip
  • Group: Members
  • Posts: 65
  • Joined: 16-March 06

Posted 08 May 2006 - 06:49 PM

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

This post has been edited by ophiel: 08 May 2006 - 06:49 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy