Bitte helfen Sie mir in: Wie Sie einen Doppelbefehl in die cmd setzen, wie dies in der Linux: apt-get install firefox && cp test.py /home/python/
, aber wie in Windows ?, genauer gesagt in Windows CE, aber es ist das gleiche in Windows und in Windows CE, weil die cmd das gleiche ist. Vielen Dank!Doppelter Befehl zum Ausführen von Programmen in der Eingabeaufforderung
1
A
Antwort
5
Wenn CE gleich wie XP Pro ist (und ich bin nicht sicher, dass Sie sich darüber sind), können Sie die gleiche Methode verwenden können:
dir && echo hello
Hier ist es läuft auf meinem Windows-VM (XP SP3):
C:\Documents and Settings\Pax>dir && echo hello
Volume in drive C is Primary
Volume Serial Number is 04F7-0E7B
Directory of C:\Documents and Settings\Pax
29/06/2009 05:00 PM <DIR> .
29/06/2009 05:00 PM <DIR> ..
17/01/2009 12:38 PM <DIR> Desktop
: : :
29/06/2009 05:00 PM 4,487 _viminfo
14 File(s) 51,658 bytes
9 Dir(s) 13,424,406,528 bytes free
hello
C:\Documents and Settings\Pax>
sind nur einige der nützlichen Mehrbefehlsoptionen:
cmd1 & cmd2 - run cmd1 then run cmd2.
cmd1 && cmd2 - run cmd1 then, if cmd1 was successful, run cmd2.
cmd1 || cmd2 - run cmd1 then, if cmd1 was not successful, run cmd2.
2
Diese http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_shelloverview.mspx?mfr=true könnte eine Hilfe sein.
prost
+0
Danke für die Hilfe! –
Danke !, Sehr gut detailliert! –