CMD Probleme (Suche batch Befehl für cmd )
Ich hoffe ihr könnt mir weiterhelfen
Ich habe folgendes Problem:
@echo off
color 42
title Programm Starter
echo ...............................................................................
echo.
echo Programm Starter -(c) 2009 by xNx443
echo.
echo ...............................................................................
echo.
echo.
echo Time: Date:
echo.
echo %time% %date%
echo.
echo.
echo --------------------------------------------------------------------------------
echo You can start:...ICQ...Mozilla Firefox...CMD...Arbeitsplatz...
echo ...internet Explorer...Microsoft Word...Microsoft Word
echo --------------------------------------------------------------------------------
echo.
echo.
echo Option:
echo.
echo.
echo.
set /p n=ICQ:........
Start ICQ.exe %n%
set /p m=Mozilla Firefox:........
Start firefox.exe %m%
set /p y=Internet Explorer:.......
Start iexplore.exe %y%
set /p x= Microsoft Word:........
Start winword.exe %x%
set /p c=Microsoft Exel:........
Start excel.exe %c%
Bei diesem Batch möchte ich durch cmd immer auswählen können was ich möchte, doch bei mir zeigt es z.B. nur ICQ an.
Mein Problem ist welchen Befehl muss ich eingeben damit Mozilla Firefox und alle anderen Programme bei cmd schon beim öffnen von cmd zur auswahl stehen!!!
Ich will mich schon mal im voraus bedanken
Ich habe folgendes Problem:
@echo off
color 42
title Programm Starter
echo ...............................................................................
echo.
echo Programm Starter -(c) 2009 by xNx443
echo.
echo ...............................................................................
echo.
echo.
echo Time: Date:
echo.
echo %time% %date%
echo.
echo.
echo --------------------------------------------------------------------------------
echo You can start:...ICQ...Mozilla Firefox...CMD...Arbeitsplatz...
echo ...internet Explorer...Microsoft Word...Microsoft Word
echo --------------------------------------------------------------------------------
echo.
echo.
echo Option:
echo.
echo.
echo.
set /p n=ICQ:........
Start ICQ.exe %n%
set /p m=Mozilla Firefox:........
Start firefox.exe %m%
set /p y=Internet Explorer:.......
Start iexplore.exe %y%
set /p x= Microsoft Word:........
Start winword.exe %x%
set /p c=Microsoft Exel:........
Start excel.exe %c%
Bei diesem Batch möchte ich durch cmd immer auswählen können was ich möchte, doch bei mir zeigt es z.B. nur ICQ an.
Mein Problem ist welchen Befehl muss ich eingeben damit Mozilla Firefox und alle anderen Programme bei cmd schon beim öffnen von cmd zur auswahl stehen!!!
Ich will mich schon mal im voraus bedanken
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 130324
Url: https://administrator.de/forum/cmd-probleme-suche-batch-befehl-fuer-cmd-130324.html
Ausgedruckt am: 11.04.2025 um 16:04 Uhr
15 Kommentare
Neuester Kommentar
Hi,
versuch mal bitte das hier.
Nach dem Start einfach die entsprechende Zahl eingeben und das Programm wird gestartet.
versuch mal bitte das hier.
@echo off
color 42
title Programm Starter
echo ...............................................................................
echo.
echo Programm Starter -(c) 2009 by xNx443
echo.
echo ...............................................................................
echo.
echo.
echo Time: Date:
echo.
echo %time% %date%
echo.
echo.
echo --------------------------------------------------------------------------------
echo You can start:...ICQ...Mozilla Firefox...CMD...Arbeitsplatz...
echo ...internet Explorer...Microsoft Word...Microsoft Word
echo --------------------------------------------------------------------------------
echo.
echo.
echo Option:
echo.
echo.
echo.
echo ICQ:.....................1
echo Mozilla Firefox:.........2
echo Internet Explorer:.......3
echo Microsoft Word:..........4
echo Microsoft Exel:..........5
set /p v=Eingabe:
goto %v%
REM icq::
:1
Start ICQ.exe %v%
goto ende
REM firefox::
:2
Start firefox.exe %v%
goto ende
REM ie::
:3
Start iexplore.exe %v%
goto ende
REM word::
:4
Start winword.exe %v%
goto ende
REM exel::
:5
Start excel.exe %v%
goto ende
:ende
ich versteh die Logik deines Userinterfaces schonmal garnicht...
versuchs lieber mal so:
Achja: Die Farbwahl ist bescheiden. Nimm lieber 0A
PS: berichtige Version. funktioniert jetzt
versuchs lieber mal so:
@echo offcolor 42title Programm Starter:menuclsecho ...............................................................................echo.echo Programm Starter -(c) 2009 by xNx443echo.echo ...............................................................................echo.echo.echo Time: Date:echo.echo %time% %date%echo.echo.echo --------------------------------------------------------------------------------echo You can start:echo.echo 1.) ICQecho 2.) Mozilla Firefoxecho 3.) CMDecho 4.) Explorerecho 5.) Internet Explorerecho 6.) Microsoft Wordecho 7.) Microsoft Excelecho.echo or you can end the programm by typing qecho --------------------------------------------------------------------------------echo.set /P option=Choose: if "%option%X"=="1X" goto icqif "%option%X"=="2X" goto ffif "%option%X"=="3X" goto comdif "%option%X"=="4X" goto computerif "%option%X"=="5X" goto ieif "%option%X"=="6X" goto wordif "%option%X"=="7X" goto excelif "%option%X"=="qX" goto endif "%option%X"=="QX" goto endgoto menu:icqStart icqgoto menu:ffstart firefoxgoto menu:comdstartgoto menu:computerstart explorergoto menu:iestart iexploregoto menu:wordstart winwordgoto menu:excelstart excelgoto menu:endexit
Achja: Die Farbwahl ist bescheiden. Nimm lieber 0A
PS: berichtige Version. funktioniert jetzt
Zitat von @Miyamoto:
echo ICQ:.....................1
echo Mozilla Firefox:.........2
echo Internet Explorer:.......3
echo Microsoft Word:..........4
echo Microsoft Exel:..........5
set /p v=Eingabe:
goto %v%
REM icq::
:1
Start ICQ.exe %v%
goto ende
echo ICQ:.....................1
echo Mozilla Firefox:.........2
echo Internet Explorer:.......3
echo Microsoft Word:..........4
echo Microsoft Exel:..........5
set /p v=Eingabe:
goto %v%
REM icq::
:1
Start ICQ.exe %v%
goto ende
damit würdest du ICQ mit dem Parameter 1 aufrufen...
FF mit parameter 2
u.s.w.. also kompletter schwachsinn :D