Command Prompt for Windows




Functions by Category

Control Functions
  • screen
  • Enable/disable buffered screen output.
  • yield
  • Allow other tasks to multitask.

    Screen Output Functions
  • printf
  • Formatted output.
  • puts
  • Display a string.
  • putx
  • Display a number of characters.
  • putchar
  • Display a character.
  • putch
  • Display a character (direct video).
  • textcolor
  • Change foreground colours.
  • perror
  • Display an error message.
  • errcnt
  • Global variable.
  • clrscr
  • Clear the screen.
  • clreol
  • Clear till the end of the line.
  • gotoxy
  • Set the caret screen position.
  • wherex
  • Get the horizontal caret position.
  • wherey
  • Get the vertical caret position.
  • scroll
  • Scroll a number of line up or down.
  • insline
  • Insert a line.
  • delline
  • Delete a line.
  • scrflush
  • Update the screen.
  • scrwidth
  • Get the screen width.
  • scrheight
  • Get the screen height.

    Input Functions
  • scanf
  • Formatted input.
  • gets
  • Get a string.
  • getchar
  • Get a character.
  • getch
  • Get a character (direct keyboard).

    String Functions
  • atoc
  • Delimit a number with commas.
  • atoi64
  • Convert a string to 64 bit integer.
  • atoui64
  • Convert a string to unsigned 64 bit integer.

    Command Line Functions
  • argc
  • Get the number of command line arguments.
  • argv
  • Retrieve a command line argument.
  • arg_c
  • Global variable.
  • arg_v
  • Global variable.
  • argpath
  • Retrieve a command line path.
  • argabs
  • Retrieve an absolute command line path.
  • argtail
  • Retrieve the actual command line tail.
  • argn
  • Get the number of command line switches.
  • args
  • Retrieve all the command line switches.

    Status Bar Functions
  • limit
  • Set the status bar target value.
  • inc
  • Update the status bar by a value.
  • empty
  • Clear the status bar percent indicator.

    File Manipulation Functions
  • filesize
  • Get the size of a file.
  • istextfile
  • Check for a text file.
  • filecpy
  • Copy a file.
  • filencpy
  • Copy part of a file.
  • filecat
  • Concatenate a file.
  • filencat
  • Concatenate part of a file.

    File Name Functions
  • fillfile
  • Create a file table of all files in a given path.
  • getfile
  • Retrieve a file control block from the file table.
  • getfilepath
  • Retrieve a file path from the file table.
  • getfilename
  • Retrieve a file name from the file table.
  • padfilename
  • Pad a file name suitable for displaying.

    Path Name Functions
  • fillpath
  • Create a path table of all directories.
  • fillpathall
  • Create a path table of all directories for all drives.
  • freepaths
  • Free the path table.
  • getpath
  • Retrieve a path from the path table.

    Unix Functions
  • todos
  • Convert a Unix command to a DOS command.
  • tounix
  • Convert a DOS command to a Unix command.
  • isunix
  • Determine if Unix mode is on or off.

    File Description Functions
  • getdesc
  • Get a file description.
  • setdesc
  • Set a file description.
  • deldesc
  • Delete a file description.

    Environment Functions
  • getenvironment
  • Get a WinOne® Command Prompt environment variable.
  • putenvironment
  • Set a WinOne® Command Prompt environment variable.

    System Functions
  • system
  • Execute a command or program.