/B Ignores end-of-file (CTRL+Z) characters.
EDLIN [drive:][path][filename]
[RANGE] L | Displays a range of lines. If no range is specified L will list the first 23 lines of the file you are editing. | ||||
[RANGE] P | Displays listing of range of lines. If no range is specified P will display the complete file. This is different from L in that P changes the current line to be the last line. | ||||
[RANGE] S [STRING] | Searches the current file open for a certain string. | ||||
[RANGE], [LINE], [NUMBER] C | Copies the specified range to the specified line. Number specifies how many copies to do. | ||||
[RANGE] D | Deletes a certain range of lines. | ||||
[LINE] I | Inserts new line at the beginning of line specified. To save the line instead and exit out of the insert menu press <Ctrl> + Z + <Enter> To exit out of the insertion press <Ctrl> + <C> | ||||
[RANGE], [LINE] M | Moves a certain range to the specified line. | ||||
[LINE] | Allows the editing of specified line. | ||||
[RANGE] R [STRING1] [STRING2] | Searches the specified range for the first specified string if the string is found replaces the string with the second specified string. | ||||
[NUMBER] A | Reads the number of lines into memory. | ||||
[LINE] T [DRIVE:] [\PATH] [FILE] | Merges the specified file into the current document at the specified line. | ||||
[NUMBER] W | Writes the specified number of lines onto disk. | ||||
Q | Quits Edlin without saving changes. | ||||
E | Quits Edlin after saving changes. |
TZUTIL Command-Line Options
The following command-line options are available for tzutil.exe:
TZUTIL </? | /g | /l | /s TimeZoneValue[_dstoff]>
TZUTIL </? | /g | /l | /s TimeZoneValue[_dstoff]>
Option | Description |
---|---|
/? | Displays usage information. |
/g | Displays the current time zone value. |
/l | Lists all valid time zone values and display names in the following format: <display name> <time zone value> |
/s | Sets the time zone to the time zone value that you specify. The _dstoff suffix disables daylight savings time adjustments for the time zone (where applicable). |
Examples
The following example displays the current time zone.
The following example lists all available time zones. The example uses the "| more" operator to display the results one full screen at a time.
The following example sets the time zone to China Standard Time (UTC+8:00).
The following example sets the time zone to Pacific Standard Time (UTC-08:00), without observing daylight savings time (UTC+1:00).
EDLIN C:\AUTOEXEC.BAT
*L
The above line would display the contents of the autoexec.bat that
we demonstrated below (contents may vary).
1: @echo off
2: cls
3: prompt $p$g
4: path=c:\dos
In the below example we choose one of the lines to edit, which in this case is line number 4. Once you have chosen a line number to edit and press enter, edlin will then display the line that you are editing with a blank line beneath it. If you press enter without typing anything, this line will not be changed. However, if you need to change the line, type the information you wish to place on this line and press enter to make the changes.
*4
4:path=c:\dos
path=c:\windows
Once we have made the above changes, ensure the changes are correct by typing L again to list the file. If the changes are correct, type E save and quit editing the autoexec.bat. However, if you do not want to save the changes, type Q and press enter to quit without saving the changes.
tzutil /g
tzutil /l | more
tzutil /s "China Standard Time"
tzutil /s "Pacific Standard Time_dstoff"
NLSFUNCStarts the Nlsfunc program, which loads country-specific information for national language support (NLS). You can use the NLSFUNC command either from the command line or within your CONFIG.SYS file to support the use of country-specific information and character set (code page) switching. Do not use the NLSFUNC command while Windows is running. If you do, your computer might stop responding. Syntax NLSFUNC [[drive:][path]filename] In your CONFIG.SYS file, use the following syntax: INSTALL=[[dos-drive:]dos-path]NLSFUNC.EXE [country-filename] Parameters [drive:][path]filename or country-filename Specifies the location and name of the file containing country-specific information. If you use this parameter in the INSTALL command, you must include the drive and directory. [dos-drive:]dos-path Specifies the location of NLSFUNC.EXE. Related Commands For information about displaying the current character set (code page), see the <CHCP> command. For information about preparing a character set (code page), see the <MODE (set device code pages)> command.
ExamplesThe below example demonstrates the basic steps needed to edit the autoexec.bat. Below demonstration illustrates both what you would see and what you would type. What you would type is displayed in red.NLSFUNC--ExamplesTo use the default country-specific information found in the COUNTRY.SYS file, type the following command: nlsfunc Suppose you have a file called NEWCDPG.SYS that contains country-specific information. If you want to use the information from that file rather than from the COUNTRY.SYS file, type the following command: nslfunc newcdpg.sys
EDLIN C:\AUTOEXEC.BAT
*L
The above line would display the contents of the autoexec.bat that
we demonstrated below (contents may vary).
1: @echo off
2: cls
3: prompt $p$g
4: path=c:\dos
In the below example we choose one of the lines to edit, which in this case is line number 4. Once you have chosen a line number to edit and press enter, edlin will then display the line that you are editing with a blank line beneath it. If you press enter without typing anything, this line will not be changed. However, if you need to change the line, type the information you wish to place on this line and press enter to make the changes.
*4
4:path=c:\dos
path=c:\windows
Once we have made the above changes, ensure the changes are correct by typing L again to list the file. If the changes are correct, type E save and quit editing the autoexec.bat. However, if you do not want to save the changes, type Q and press enter to quit without saving the changes.