MSFN Forum: alternative to cmdow @ /HID - MSFN Forum

Jump to content



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

alternative to cmdow @ /HID Rate Topic: -----

#1 User is offline   Clint 

  • Go ahead, punk'
  • PipPipPip
  • Group: Members
  • Posts: 414
  • Joined: 03-April 05

Posted 22 June 2005 - 02:06 PM

I'm using cmd /c start /wait %systemdrive%\Install\Applications\***.exe for my RunOnceEx so it wont mess things up and wait for doing all in proper time...works fine but I cant stand having those boxes hanging there.

I have tried to usecmd /c cmdow @ /HID start /wait %systemdrive%\Install\Applications\***.exe ..but then nothing happens.

I remember someone mentioned something about other method/command that didnt call up any box at all, anyone has a clue or solution?


#2 User is offline   websee 

  • Junior
  • Pip
  • Group: Members
  • Posts: 60
  • Joined: 25-September 04

Posted 22 June 2005 - 02:40 PM

well, i would say first learn to read, then post, you used the wrong syntax
thats how it is done:
cmdow @ /HID
start /wait %systemdrive%\Install\Applications\***.exe

2 LINES!!!!!

see http://unattended.ms...unonceex_cd.htm for examples

then it should work. another method is to use cygwins run.exe to start the batch window hidden.
then you just use
run.exe yourbatchfile.cmd

This post has been edited by websee: 22 June 2005 - 02:41 PM


#3 User is offline   Achdine 

  • Junior
  • Pip
  • Group: Members
  • Posts: 97
  • Joined: 11-May 05

Posted 22 June 2005 - 03:06 PM

As for hidng cmd.exe I use NirCMD to prevent the windows from opening at all. CMDow just hides the window after it opens, NirCMD will prevent anything from opening at all.

Here are some different examples of how you can use it on your UA CD/DVD to prevent those windows from opening:
Quietly execute any commandline argument:
NirCMD ExeCMD "RD /S /Q "~$folder.common_start_menu$\Programs\**** NFO Viewer""

Run an application invisibly:
NirCMD Exec hide "~$Nir.Exefile$\Applications\Setup.exe" /S

Hide/close/move a window:
NirCMD win close ititle "cmd.exe"

Killing processes:
NirCMD killprocess UltraMon.exe

Or just turn off the monitor :P
NirCMD Monitor Off


Good stuff, and more in the excellent documentation.

This post has been edited by Achdine: 22 June 2005 - 03:07 PM


#4 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,119
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 22 June 2005 - 04:12 PM

also, you if you need more than one line you can link the commands with an ampersand:
cmd /c cmdow @ /HID&start /wait %systemdrive%\Install\Applications\***.exe
More to the point however, have you tried using the start command correctly, it will certainly help with commands not waiting
start "" /wait %systemdrive%\Install\Applications\***.exe
where the title, (between the quotes), can be blank as in my example or filled with your chosen text.

#5 User is offline   Clint 

  • Go ahead, punk'
  • PipPipPip
  • Group: Members
  • Posts: 414
  • Joined: 03-April 05

Posted 22 June 2005 - 08:59 PM

I think you misunderstood me, i wanna use those commands directly in in RunOnceEx, that is NOT using a batch.

start wont do crap in RunOnceEx unless you call an batch that contains that command.
thats why I used "cmd /c start" to call cmd first.
I use WPI and feels it's a waste of nice coding not to use provided commandlines and use a single batchfile instead.

The meaning with my somwhat cryptic post whas to get either a better way to use RunOnceEx to call those commands directly OR find that other method where callings those batches in a more hidden fashion that I've read somewhere.

@ Achdine, thanx bro..thats exactly what I'm looking for :D



..@ websee, ..c'mon dude, "well, i would say first learn to read, then post"
..whats the gain? :huh:
I HAVE spent time at those guides, maybe I've missed some but there is NO need for that..pffff.

#6 User is offline   vcBlackBox 

  • Member
  • PipPip
  • Group: Members
  • Posts: 144
  • Joined: 22-September 04

Posted 22 June 2005 - 09:53 PM

NirCMD is a neat little utility. I agree.

Another alternative is StartX.
StartX can be a replacement for Windows internal start command. Example:
startx /wait /b %systemdrive%\Install\Applications\install.cmd

switch /b will start your application without creating a new window. (no more using cmdow, no more quick flashes of a DOS window either)

just place StartX.exe in $OEM$\$$\SYSTEM32\


start "" /wait %systemdrive%\Install\Applications\***.exe

This only a minor quibble, but it can be stated better as *.exe
Using one or three astericks will give you all instances of exe filetypes in your directory, not necessarily just the three characters .exe if that is what you were looking for.
The ? wildcard would be more appropriate for specifing a specific number of characters.
For exactly three characters, use ???.exe instead.

Anyways hope that helps.

This post has been edited by vcBlackBox: 22 June 2005 - 09:56 PM


#7 User is offline   Clint 

  • Go ahead, punk'
  • PipPipPip
  • Group: Members
  • Posts: 414
  • Joined: 03-April 05

Posted 22 June 2005 - 10:27 PM

vcBlackBox, on Jun 23 2005, 05:53 AM, said:

start "" /wait %systemdrive%\Install\Applications\***.exe

This only a minor quibble, but it can be stated better as *.exe
Using one or three astericks will give you all instances of exe filetypes in your directory, not necessarily just the three characters .exe if that is what you were looking for.
The ? wildcard would be more appropriate for specifing a specific number of characters.
For exactly three characters, use ???.exe instead.

Anyways hope that helps.
<{POST_SNAPBACK}>


hehe, my bad..was only using astericks as "whattevaname".exe.
should have known better :blushing:

looking in on StartX, having probs getting NirCMD to fly with this:

NirCMD ExeCMD "%CDROM%\Install\applications\OpenOffice\setup.exe -r:%CDROM%\Install\applications\OpenOffice\setup.txt" -debug

maybe I'm missing a couple of quotas?

EDIT:
when using startx /wait /b "%CDROM%\Install\Applications\ART\setup.exe" /S
I get "no commands specified" by StartX..I thought this was possible to run from RunOnceEx :blink:
I mean, StartX gets reached by RunOnceEx allright but StartX itself can't give the commands... :( ...man, this is confusing.

This post has been edited by Clint: 22 June 2005 - 11:07 PM


#8 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,119
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 23 June 2005 - 02:35 AM

Clint, on Jun 23 2005, 03:59 AM, said:

I think you misunderstood me, i wanna use those commands directly in in RunOnceEx, that is NOT using a batch.

start wont do crap in RunOnceEx unless you call an batch that contains that command.
thats why I used "cmd /c start" to call cmd first.<{POST_SNAPBACK}>
To whom are you addressing with these remarks!

My response was a direct fix for your line, which you stated didn't work!

Clint, on Jun 23 2005, 09:06 PM, said:

I have tried to usecmd /c cmdow @ /HID start /wait %systemdrive%\Install\Applications\***.exe ..but then nothing happens.
I then went on to explain that you were not actually using the start command with its full correct syntax, it wasn't an example of the code you need in your RunOnceEx, just an example of correct usage.

No batch is used or needed just a single line to run the command interpreter with parameters.

Now with the information I gave and a little research you could also find out that you could run more than one command from the same line, also reducing the number of cmd windows; you could also turn off the echoing too!
cmd /q/c cmdow @hid&start "" /wait first.exe&&start "" /wait second.exe


#9 User is offline   Clint 

  • Go ahead, punk'
  • PipPipPip
  • Group: Members
  • Posts: 414
  • Joined: 03-April 05

Posted 23 June 2005 - 03:04 AM

Yzöwl, on Jun 23 2005, 10:35 AM, said:

Clint, on Jun 23 2005, 03:59 AM, said:

I think you misunderstood me, i wanna use those commands directly in in RunOnceEx, that is NOT using a batch.

start wont do crap in RunOnceEx unless you call an batch that contains that command.
thats why I used "cmd /c start" to call cmd first.<{POST_SNAPBACK}>
To whom are you addressing with these remarks!

My response was a direct fix for your line, which you stated didn't work!

Clint, on Jun 23 2005, 09:06 PM, said:

I have tried to usecmd /c cmdow @ /HID start /wait %systemdrive%\Install\Applications\***.exe ..but then nothing happens.
I then went on to explain that you were not actually using the start command with its full correct syntax, it wasn't an example of the code you need in your RunOnceEx, just an example of correct usage.

No batch is used or needed just a single line to run the command interpreter with parameters.

Now with the information I gave and a little research you could also find out that you could run more than one command from the same line, also reducing the number of cmd windows; you could also turn off the echoing too!
cmd /q/c cmdow @hid&start "" /wait first.exe&&start "" /wait second.exe

<{POST_SNAPBACK}>


UhOh, I see now what you mean, I wasnt paying attention enuff (early in the morning)..now I can see that you have fixed that line and THEN provided the proper
start command and quotes.. :blushing:
My mind was all set to that you were refering to a proper batchfile (hence the last line starting with"start")..guess I still had websee's "clever remark" ringin' in my mind :}

well, you live and learn..thanx for the instructions...worked perfectly :D

#10 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 23 June 2005 - 03:16 AM

a number of use use Quick Batch File converter to make totally silent
cmd or bat which becomes EXE.

no added cmdow needed.

get it it is cool

#11 User is offline   Clint 

  • Go ahead, punk'
  • PipPipPip
  • Group: Members
  • Posts: 414
  • Joined: 03-April 05

Posted 23 June 2005 - 03:29 AM

Astalavista, on Jun 23 2005, 11:16 AM, said:

a number of use use Quick Batch File converter to make totally silent
cmd or bat which becomes EXE.

no added cmdow needed.

get it it is cool
<{POST_SNAPBACK}>


passwordprotect your batches...hehe, nice features :thumbup

this is what it's all about, doing "research" in this fashion by posting questions you get all kinda pearls thrown at you ;)
I DO my research as well, but this is the best...thanx bro!
I gain knowledge, you gain that warm fuzzy feeling helpin' a fella out.. :P

#12 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 23 June 2005 - 03:43 AM

welcome... it is the best

for what u want to do ...

enjoy!

#13 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,119
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 23 June 2005 - 03:44 AM

No problem, Clint, been there, done that, got the T-shirt!

Also I have to agree, Quick Batch File Compiler is good, and although I rarely use it, the 'Ghost Application' feature is brilliant for silent unattended use. Just make sure that the cmd file works using a test QBFC first, it's still surprising how many you have problems with, once compiled as an exe, which ran perfectly as a cmd. They do however have a good support forum, where you can get help with problems such as this.

#14 User is offline   Clint 

  • Go ahead, punk'
  • PipPipPip
  • Group: Members
  • Posts: 414
  • Joined: 03-April 05

Posted 23 June 2005 - 05:46 AM

Yzöwl, on Jun 23 2005, 11:44 AM, said:

No problem, Clint, been there, done that, got the T-shirt!

Also I have to agree, Quick Batch File Compiler is good, and although I rarely use it, the  'Ghost Application' feature is brilliant for silent unattended use. Just make sure that the cmd file works using a test QBFC first, it's still surprising how many you have problems with, once compiled as an exe, which ran perfectly as a cmd. They do however have a good support forum, where you can get help with problems such as this.
<{POST_SNAPBACK}>


uhumm, can't agree with you more...very picky indeed :huh:

guess my batches aren't good enuff..heh.
also that "nag" gets on my nerve, kinda spoils the whole idea..can't afford to shuffle that
39$.
But I see why ppl use it, excellent features with "Ghost" and "Passprotect".. :thumbup

EDIT: StartX works SWEET..! The postinstall now takes 50% longer time, but thats a good thing for once ;)
No boxes, nada! :thumbup

This post has been edited by Clint: 23 June 2005 - 07:40 AM


#15 User is offline   Clint 

  • Go ahead, punk'
  • PipPipPip
  • Group: Members
  • Posts: 414
  • Joined: 03-April 05

Posted 24 June 2005 - 06:23 AM

Astalavista, on Jun 23 2005, 11:16 AM, said:

a number of use use Quick Batch File converter to make totally silent
cmd or bat which becomes EXE.

no added cmdow needed.

get it it is cool
<{POST_SNAPBACK}>


hehe, what a piece of crap!
I have been trying to make it run the simplest batch...nada!

it wouldnt even run this:
@echo off
MOVE c:\test.txt c:\new\test.txt
EXIT

no, that was a way to smucky app for me.. :(

EDIT: got my hands on "ExeScript 2.0" that looks like a rip-off from that "Quick Batch File converter"..this one actually works!
Downside is, when open that .exe in notepad the "source" is not encrypted at all...another piece of crap as well... :whistle:

This post has been edited by Clint: 26 June 2005 - 01:28 AM


#16 User is offline   JohnS 

  • Member
  • PipPip
  • Group: Members
  • Posts: 109
  • Joined: 14-May 05

Posted 24 June 2005 - 09:08 AM

I have now started playing with Autoit and making installation scripts that have visible windows during RunOnceEx.
Would the content of this thread be of any help in hiding the sucession of windows during the install of a program?
There is a topic about this problem, but with no success:
http://www.msfn.org/...showtopic=44145
Thanks

#17 User is offline   testazzo 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 24-March 06

Posted 08 February 2008 - 09:48 AM

What's the way to INCLUDE nircmdc.exe into WinPE?
My problem is that cmdow.exe pr nircmd.exe CAN'T BE EXECUTED from STARTNET.CMD in a X64 WinPE Boot image !!!!

Seems that's a Group Security Policy LOCK for files differents from HKLM\COMPONENTS\CanonicalData\Components

Please HOW can I add my custom executable & run them in X64 WinPE Boot image?

How can i create & add Components for wim files?

Tnx

#18 User is offline   testazzo 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 24-March 06

  Posted 11 February 2008 - 11:32 AM

View Posttestazzo, on Feb 8 2008, 04:48 PM, said:

What's the way to INCLUDE nircmdc.exe into WinPE?
My problem is that cmdow.exe pr nircmd.exe CAN'T BE EXECUTED from STARTNET.CMD in a X64 WinPE Boot image !!!!

Seems that's a Group Security Policy LOCK for files differents from HKLM\COMPONENTS\CanonicalData\Components

Please HOW can I add my custom executable & run them in X64 WinPE Boot image?

How can i create & add Components for wim files?

Tnx


SOLVED!

The WinPE Enviroment is a PURE 64BIT so CMDOW, NIRCMD etc DOESN't WORK!

To solve DEFINITELY the problem use AUTOIT:

Forget STARTNET.CMD, instead create a file "Winpeshl.ini"

____________________________________________________________
[LaunchApp]
AppPath = ShellExecuteWait.exe "Setup.cmd" "" "" "open" "SW_HIDE"
____________________________________________________________

Create a file Setup.cmd

____________________________________________________________
@echo off
for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%a:\sources\setup.exe set CDROM=%%a:
call %CDROM%\sources\$OEM$\Unattended1.cmd
start /wait /realtime %CDROM%\sources\setup.exe
call %CDROM%\sources\$OEM$\Unattended2.cmd
____________________________________________________________


Unattended1.cmd & Unattended2.cmd scripts taht can be used to load/unload drivers before start Setup!



Compile the script (AutoIt) as 64 BIT

____________________________________________________________
;ShellExecuteWait ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] )
Select
Case $CmdLine[5] = "SW_HIDE"
ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_HIDE)
Case $CmdLine[5] = "SW_MINIMIZE"
ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_MINIMIZE)
Case $CmdLine[5] = "SW_MAXIMIZE"
ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_MAXIMIZE)
Case $CmdLine[5] = "SW_SHOWNORMAL"
ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_SHOWNORMAL)
EndSelect
____________________________________________________________


put files in mounted WinPE startup image :)

All done .....

This post has been edited by testazzo: 11 February 2008 - 11:34 AM


#19 User is offline   COKEDUDEUSF 

  • Member
  • PipPip
  • Group: Members
  • Posts: 224
  • Joined: 24-January 07

Posted 18 July 2008 - 11:49 AM

Will this work in the cmdlines.txt? I'm having difficulty making this work.

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 - 2011 msfn.org
Privacy Policy