CMD.EXE immer minimiert starten ?

  • Hallo ich will das Die Dos-Box immer minimiert gestartet wird?

    kann ich da irgendwas in der Registry eintragen?

    will nicht über Shortcut

    oder start /min Lösung

    damit z.b andere Programme wenn sie eine Dos-Box öffnen Sie immer
    im voraus minimiert ist oder wenn ich in ausführen cmd eintippe die Dos-Box auch miniert is

    Danke für Hilfe
    Falls mein Problem lösbar is

    SchwipSchwap :P

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress, WoltLab & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Hab mein Problem gelöst :D

    Hier meine Schritt für Schritt Lösung falls es jemanden interessiert

    1) Zuerst Activeperl installiern
    2) ppm install win32-api (Unter DOS)
    3) ppm install http://www.roth.net/perl/packages/win32-api-prototype.ppd

    4) als nächstes eine hide.pl (Unter C:\winnt\ anlegen)

    -----------------------------------------------------------------------------
    use Win32::API::Prototype;
    ApiLink( 'kernel32.dll', 'HWND GetConsoleWindow()' ) || die;
    ApiLink( 'user32.dll', 'BOOL ShowWindow( HWND hWnd, int iCommand )' ) || die;
    $hWnd = GetConsoleWindow();

    # Minimize the window.
    ShowWindow( $hWnd, 0x07 );

    -----------------------------------------------------------------------------

    Hex Werte für ShowWindow:

    SW_HIDE 0x00 Hides the window, which causes another window to become the topmost window
    SW_SHOWNORMAL 0x01 Activates and displays the specified window (both
    SW_NORMAL constants achieve this result)
    SW_SHOWMINIMIZED 0x02 Activates and minimizes the specified window
    SW_SHOWMAXIMIZED 0x03 Activates and maximizes the specified window (both
    SW_MAXIMIZE constants achieve this result)
    SW_SHOWNOACTIVATE 0x04 Restores the specified window to its most recent size and position (like SW_RESTORE) but doesn't activate the window
    SW_SHOW 0x05 Activates the specified window, which forces the window to become the topmost window
    SW_MINIMIZE 0x06 Minimizes the specified window and lets the next topmost window become the topmost window
    SW_SHOWMINNOACTIVE 0x07 Minimizes but doesn't activate the specified window
    SW_SHOWNA 0x08 Displays but doesn't activate the specified window (use to unhide but not activate a window)
    SW_RESTORE 0x09 Activates the specified window and restores it to its original size and position (use to restore a minimized window)
    SW_SHOWDEFAULT 0x0a Sets the window's default state specified when the application started
    SW_FORCEMINIMIZE 0x0b Forces the specified window to minimize even if the window belongs to an application that is hung (only Win2K and later support this constant)


    5) Registry ändern damit perl script beim starten von cmd.exe geladen wird

    1) regedit
    2) Gehe zu HKEY_CURRENT_USER\Software\Microsoft\Command
    Processor
    3) String "Autorun" anlegen
    4) Wert "perl c:\winnt\hide.pl" anlegen

    Des müsste es gewesen sein am besten perl script vor der regstriy änderung ausprobiern (perl c:\winnt\hide.pl)

    Hoffe es nützt jemanden ausser mir :lol:

    Grüße SchwipSchwap

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!