Enhanced Batch Commands
Enhanced Batch commands are commands that have been added to the WinOne® Command Prompt to make batch files more powerful and easier to write. They include :-
| Ask a yes/no question and set the errorlevel respectively. | |
| Send a beep to the system speaker. | |
| Display a box in one of four pre-defined formats. | |
| Perform basic arithmetic calculations in a batch file. | |
| Call a procedure with in a Batch file. | |
| Determine the number of code-points in the first character of a string. | |
| Determine the number of code-points in the last character of a string. | |
| Change foreground and background screen colours. | |
| Get a value from a COM object property. | |
| Call a COM object method. | |
| Insert commas into a number. | |
| Put a value into a COM object property. | |
| Clear or add items to a global list | |
| Convert a date to a serial date value. | |
| Display the directory stack. | |
| Determine the amount of free disk space for a disk drive. | |
| Determine the amount of used disk space for a disk drive. | |
| Conditionally perform a command one or more times. | |
| End a batch file. | |
| End a procedure. | |
| Enumerate all the keys in the System Registry for the specified hkey. | |
| Get the last modified date of a file. | |
| Get the size in bytes of a file. | |
| Get the last modified time of a file. | |
| Determine whether a file contains text or binary data. | |
| Get an initialisation file key value or enumerate all the key names. | |
| Wait for a single keypress from the user. | |
| Wait for a sequence of keypresses from the user. | |
| Wait for a sequence of keypresses from the user. | |
| Get a System Registry value or enumerate all the names for a hkey. | |
| Jump to another part of a batch file and then return. | |
| Evaluate an expression and set an environment variable with the result. | |
| Position the cursor anywhere on the screen. | |
| Convert a text string to lower case. | |
| Allows a sentence to be broken into pieces. | |
| Play a wave sound file. | |
| Pop a directory from the stack and make it the current directory. | |
| Start a procedure. | |
| Push the current directory onto the stack and change to a new directory. | |
| Read the next item from the global list. | |
| Read a line of text from a file. | |
| Return execution to the next command following the GOSUB command. | |
| Display a message with out a carriage return - line feed. | |
| Randomise the random number generator. | |
| Convert a serial date value to a date. | |
| Set or delete an initialisation file key value. | |
| Set or delete a System Registry value. | |
| Do nothing for a time. | |
| Stop processing a batch file and return to previous batch file. | |
| Find the first occurrence of a string within the specified text. | |
| Normalize or fold a Unicode string as specified. | |
| Pad a text string with space characters. | |
| Replace all occurrences of a string within text with another string. | |
| Reverse all the characters in a text string. | |
| Find the last occurrence of a string within the specified text. | |
| Determine the length of a string. | |
| Split a string at the specified position. | |
| Remove leading and trailing space characters from a text string. | |
| Extract a section of text from a text string. | |
| Conditionally perform a command zero or more times. | |
| Convert a text string to upper case. | |
| Conditionally perform a command zero or more times. |
