You can have more than one setlocal or endlocal command in a batch program (that is, nested commands).
In einem Batchprogramm können mehrere Befehle setlocal oder endlocal vorhanden sein (d. h. verschachtelte Befehle).
You can use pushd and popd in a batch program to change the current directory from the one in which the batch program was run and then change it back.
Sie können pushd und popd in einem Batchprogramm verwenden, um das aktuelle Verzeichnis von dem zu ändern, in dem das Batchprogramm ausgeführt wurde, und es dann zurückzuändern.
Suppose you want a batch program to prompt the user to change disks in one of the drives.
Displays the date or allows you to change the date from your computer or from a batch program.
Zeigt das Datum an bzw. ermöglicht es, das Datum über die Eingabeaufforderung oder ein Stapelverarbeitungsprogramm zu ändern.
The executable file is usually a batch program that you create, but it can also be a third-party program.
Die ausführbare Datei ist normalerweise ein Stapelverarbeitungsprogramm, das Sie selbst erstellen. Es kann sich aber auch um ein Programm eines anderen Herstellers handeln.
Following is an example of a batch program that uses the errorlevel parameter on the if command line to process a diskcomp exit code
Es folgt ein Beispiel für ein Stapelverarbeitungsprogramm, das den Parameter Errorlevel in der if -Befehlszeile verwendet, um einen diskcomp -Beendigungscode zu verarbeiten
You can also use set in a batch program that adds a new directory to the PATH environment variable.
Sie können set auch in einem Batchprogramm verwenden, das ein neues Verzeichnis zur Umgebungsvariable PATH hinzufügt.
To use the FOR command in a batch program, specify %variable instead
Um den FOR-Befehl in einem Batchprogramm zu verwenden, geben Sie %Variable
To load a program named Myapp.exe (in the APPS directory of drive C) and use the/c parameter (for example, to load the program in character mode), type the following at the command prompt or include the line in a batch program
Um beispielsweise das Programm MeineAnw.exe (im Verzeichnis Programme von Laufwerk C:) und den Parameter/c zu laden (um z. B. die Anwendung im Zeichenmodus zu starten), geben Sie den folgenden Befehl an der Eingabeaufforderung oder schließen die Zeile in ein Stapelverarbeitungsprogramm ein
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.