What can the command ENDLOCAL?


 
ColorConsole [Version 1.3.3000]
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS>HELP ENDLOCAL
Ends localization of environment changes in a batch file.
Environment changes made after ENDLOCAL has been issued are
not local to the batch file; the previous settings are not
restored on termination of the batch file.

ENDLOCAL

If Command Extensions are enabled ENDLOCAL changes as follows:

If the corresponding SETLOCAL enable or disabled command extensions
using the new ENABLEEXTENSIONS or DISABLEEXTENSIONS options, then
after the ENDLOCAL, the enabled/disabled state of command extensions
will be restored to what it was prior to the matching SETLOCAL
command execution.



C:\WINDOWS>HELP ERASE
Deletes one or more files.

DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names

 names         Specifies a list of one or more files or directories.
               Wildcards may be used to delete multiple files. If a
               directory is specified, all files within the directory
               will be deleted.

 /P            Prompts for confirmation before deleting each file.
 /F            Force deleting of read-only files.
 /S            Delete specified files from all subdirectories.
 /Q            Quiet mode, do not ask if ok to delete on global wildcard
 /A            Selects files to delete based on attributes
 attributes    R  Read-only files            S  System files
               H  Hidden files               A  Files ready for archiving
               -  Prefix meaning not

If Command Extensions are enabled DEL and ERASE change as follows:

The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.



C:\WINDOWS>HELP EXIT
Quits the CMD.EXE program (command interpreter) or the current batch
script.

EXIT [/B] [exitCode]

 /B          specifies to exit the current batch script instead of
             CMD.EXE.  If executed from outside a batch script, it
             will quit CMD.EXE

 exitCode    specifies a numeric number.  if /B is specified, sets
             ERRORLEVEL that number.  If quitting CMD.EXE, sets the process
             exit code with that number.




GOTO : HELP FC








Windows-10





Windows-10

... facebook.de
... Windows-10 FAQ
... Windows-10 Info


Become a Sponsor
... Your button here?





The command ENDLOCAL - Ends localization of environment changes in a batch file.

HTTP: ... console/en/026.htm
0.108
12003

Hat Windows-7 eine Bildschirmlupe?

 /

Modify the size of the icons in the task bar of Windows 8.1 and 10!

 /

How to remove the annoying vermin from my Windows desktop?

 /

Disable Login Screen in Windows 10, how to?

 /

Gadgets Windows 10?

 /

Can I change the file format from rar to zip?

 /

Exclude a Folder in Windows 10 Defender!

 /

Bestätigung beim Löschen von Dateien und Ordnern unter Windows-7 deaktivieren, aber wie?

 /

I can not find the bytes on my Windows 10 PC?

 /

Nicht komprimierbare Datei unter Windows erstellen, für diverse Testest! 

 /

Per Tastenkürzel Texte einfügen und Befehle starten kann so einfach sein!

 /

Bug with time zones / summer time!

 /