Siginet Posted July 12, 2006 Author Share Posted July 12, 2006 Bug fixed when batch run without path. Link to comment Share on other sites More sharing options...
jaws75 Posted July 13, 2006 Share Posted July 13, 2006 All seams to work perfect now.Good job!Thanks.If you want to get creative cmdow has the option to unhide a window.I have only used it once but not sure if anyone else would need it.It could just introduce more bugs so maybe it's not worth the headache.Thanks again. Link to comment Share on other sites More sharing options...
Siginet Posted July 14, 2006 Author Share Posted July 14, 2006 Thx! Link to comment Share on other sites More sharing options...
idesksoft Posted July 16, 2006 Share Posted July 16, 2006 Good work, I just need it. Link to comment Share on other sites More sharing options...
pmshah Posted July 19, 2006 Share Posted July 19, 2006 There has been application called run.exe available for a long time from makers of cathy.exe to run applications/ batch files in the background without any window being created.Just for the record:Actually, "run.exe" has nothing to do with cathy.exe, , it is part of the cygwin utilities:http://cygutils.fruitbat.org/run/index.htmlIt's use is advocated in an article related to cathycmd.exe, though :http://www.virtualplastic.org/html/alt_find.htmlCathy homepage:http://www.mtg.sk/rva/jaclazI got them both from the same site I believe. Anyway I use it for anything where I do not want a window to open or the user to cancel it. Link to comment Share on other sites More sharing options...
Nuno Brito Posted July 29, 2006 Share Posted July 29, 2006 I've noticed that you're compiling your app as a "standard" win32 executable, outputing a 180Kb .exe file even after upx compression...It is possible to make .exe files for win32 only as console, making much smaller apps around 10Kb..Here is a small app I've made some time ago using delphi. There are quite a few others much better than mine. You might find interesting the discussion topic on this.http://www.911cd.net/forums//index.php?showtopic=17084Special remark: most antivirus will report these exe's as being virus since they share the same code techniques usually used by virus to stealth their trojan executables, this is the reason why cmdow and hideExec are reported as virus. (don't know about my own hide.exe because AVG hasn't complained, but I don't know about others like norton, kaspersky..) Here's the source code:program hide;//{$APPTYPE CONSOLE}uses ShellApi, Windows;var Handle : THandle; i : Integer; Parameters : String;begin if paramCount < 1 then exit; // no parameters? exit.. for i:=2 to paramcount do parameters := parameters + paramStr(i); ShellExecute(Handle, 'open', pChar(paramStr(1)), Pchar(parameters), '', SW_HIDE); // run hiddenend.I know you've probably used another programming language other than delphi, but shellexecute is a standard win32 API available in most win32 languages.The code could even get more reduced, I forgot this was not needed: Var Handle : THandle;andShellExecute(Handle, 'open', pChar(paramStr(1)), Pchar(parameters), '', SW_HIDE); // run hiddencould also be:ShellExecute(Application.Handle, 'open', pChar(paramStr(1)), Pchar(parameters), '', SW_HIDE); // run hiddenThis was made for windows PE environment with very limited resources, if you want to hide program windows under a regular windows installation, you could also use invisible.vbs:If WScript.Arguments.Count <> 1 Then WScript.Echo "Runs an application invisibly. Usage:" & vbCrLf & "Wscript.exe " & WScript.ScriptName & " ""C:\Path\Program.exe""" & vbCrLf & "Where ""C:\Path\Program.exe"" is the path to any program, script, or batch file."Else CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, FalseEnd IfSized in 356 bytes.. Link to comment Share on other sites More sharing options...
RBCC Posted November 8, 2006 Share Posted November 8, 2006 A Couple Questions about cmdhide:where do I put cmdhide in this line:DetachedProgram=CMD.EXE Arguments="/C START /WAIT %SYSTEMDRIVE%\INSTALL\T39.CMD"and in this line:[setupParams] UserExecute=%systemdrive%\install\T9.cmd and in this line:[GUIRunOnce]%systemdrive%\install\apps.cmd%systemdrive%\install\utils.cmd%systemdrive%\install\chkdsk.cmdthank you John Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now