Command Line

 


Use keywords to find the content you
are looking for with in the site.

Enhanced Batch Commands

There are 50 batch commands in this category. These batch commands greatly enhance the usefulness of batch programs. Click on the commands name to display its syntax and any extra infomation related to the command.

Command
Description
ASK Ask a yes/no question and set the errorlevel respectively.
BEEP Send a beep to the system speaker or turn the system sound on or off.
BOX Display a box in one of four pre-defined formats.
CALC Perform basic arithmetic calculations in a batch program.
CALLPROC Call a procedure with in a Batch program.
COLOUR Sets foreground and background colours inside a batch program.
COMMA Insert comma's into a number.
DATA Clear or add items to a global list.
DATE2SER Convert a date to a serial date value.
DIRS Display the directory stack.
DISKFREE Get the amount of free disk space for the specified drive.
DISKUSED Get the amount of used disk space for the specified drive.
END End a batch program.
ENUMREG Enumerate all the keys in the System Registry for the specified hkey.
FILEDATE Get the last modified date of a file.
FILESIZE Get the size (in bytes) of a file.
FILETIME Get the last modified time of a file.
FILETYPE Determine whether a file contains text or binary data.
GETINI Get an initialisation file key value or enumerate all the key names in a section.
GETKEY Wait for a single keypress from the user.
GETNUM Wait for a sequence of keypresses from the user.
GETREG Get a System Registry value or enumerate all the names for the specified hkey.
GETSTR Wait for a sequence of keypresses from the user.
GOSUB Jump to another part of a batch program and continue executing the batch program from that point onwards until a RETURN command is found. Execution of the batch program will then return to the next command following the original GOSUB command.
LOCATE Position the cursor anywhere on the screen.
LOWER Convert a text string to lower case.
PARSE Allows a sentence to be broken into pieces.
PLAY Play a wave sound (ie. .WAV) file.
POPD Pop a directory from the directory stack and make this directory the current directory.
PUSHD Push the current directory onto the directory stack and change to the specified directory.
READ Read the next item from the global list.
READLN Read a line of text from a file.
RETURN Return to the next command following the original GOSUB command.
SAY Display a message. This command with NOT add a carriage return - line feed at the end of the message.
SEED Randomise the random number generator or set the seed to the specified value.
SER2DATE Convert a serial date value to a date.
SETINI Set or delete an initialisation file key value.
SETREG Set or delete a value for the specified hkey in the System Registry.
SLEEP Do nothing for some time.
STOP Stop processing a batch program and continue processing the batch program that called this batch program (ie. via the CALL batch command).
STRFIND Find the first occurrence of a string within the specified text.
STRPAD Pad a text string with space characters.
STRREP Replace all occurrences of a string within the specified text with another string.
STRREV Reverse all the characters in a text string.
STRRFIND Find the last occurrence of a string within the specified text.
STRSIZE Determine the length of a string.
STRSPLIT Split a string at the specified position.
STRTRIM Remove leading and trailing space characters from a text string.
SUBSTR Extract a section of text from a text string.
UPPER Convert a text string to upper case.

Copyright © 1995-2018 Lucien Cinc, All Rights Reserved
WinOne® is an Australian registered trademark

Go to the Australian Command Line Software web site.