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.218
12003

Can I install program and drivers in compatibility mode on Win 8 / 8.1?

 /

Can I enable the password prompt for screen saver in Windows 8.1 (turn off, turn off, turn on)?

 /

Q-Dir full translation or only the strings with the changes?

 /

Was ist eine VR Brille?

 /

Quick Memory Test OK for Windows 10, 8.1, ... and Server!

 /

Hiberfil.sys to another drive because my C: on SSD is full (Windows 8.1 / 10)!

 /

Was ist ein Gast-Account?

 /

Easy of Access Center missing on Windows 10?

 /

Sleep Mode can be turn offd directly in Windows 10!

 /

Make Always on Top, To-Tray, Transparency for all Windows on 10, 8.1, ...!

 /

How do i use the Quad-Directory internal file association rules eg 7-Zip?

 /

Can I also do something else, not only Search queries for internet?

 /