Jump to content

[Release] cmdhide.exe


Siginet

Recommended Posts


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

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, :no: , it is part of the cygwin utilities:

http://cygutils.fruitbat.org/run/index.html

It's use is advocated in an article related to cathycmd.exe, though ;) :

http://www.virtualplastic.org/html/alt_find.html

Cathy homepage:

http://www.mtg.sk/rva/

jaclaz

I 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

  • 2 weeks later...

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=17084

Special 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 hidden

end.

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;

and

ShellExecute(Handle, 'open', pChar(paramStr(1)), Pchar(parameters), '', SW_HIDE); // run hidden

could also be:

ShellExecute(Application.Handle, 'open', pChar(paramStr(1)), Pchar(parameters), '', SW_HIDE); // run hidden

This 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, False
End If

Sized in 356 bytes..

:)

Link to comment
Share on other sites

  • 3 months later...

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.cmd

thank you :thumbup:hello::no: John

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...