[DOG-Logo]
Main
Documentation
License
Test run DOG
Installation guide
Links
FAQ
Feedback
Mail
Developer
Download
[SourceForge]
[FreeDOS]

DOG Documentation


Command line Syntax

DOG [-P[[:]envsize]¦-E:envsz¦-C command line]

Parameters:

  • -P - Makes DOG a PERMANENT shell. Using this flag will also result in the
    execution of dog.dog in the current directory.
  • -E envsz - Makes the environment to (envsz / 16) 16 bit pages.
  • -C command line - Executes the command line and exits.


Commands

The internal commands are:

The external commands are:



BR

Syntax: BR [ON¦OFF]
Parameters:
  • ON - Set DOS Break flag to ON (check for break on all DOS calls).
  • OFF - Set DOS Break flag to OFF (check for break only when reading/writing stdin/stdout/stderr).
Effect: Toggles the DOS Break flag. In case no parameters are given it returns the Break Flag

Top

CC

NOT implemented yet

Syntax: CC [CodePage]
Parameters:
  • CodePage - The new codepage to use for characters.
  • - cc without Args returns the codepages availabe, and shows the active.
Effect: Changes the current codepage to CodePage.
Top

CD

Syntax: CD [Path]
Parameters:
  • Path - The destination path. The .. directory can be appended directly to cd like in DOS. e.g.cd..
    Every dot over the first two will be iterpeted as one more parrent directory; thus .... is equal to ..\..\..
  • - cd without Args returns the current directory.
Effect: Changes the current directory to Path.
Note: Directories are executable. This means that you do not have to write CD in order to change directory.
Top

CL

Syntax: CL
Effect: Clears the screen. Works on 50 lines/page screens too.
Top

CP

Syntax: CP src trg
  • src - The file you want to copy. The * and ? wildcards are NOT OK.
  • trg - Path to the target file or directory.

Effect: Copies the source file to trg.
Note: This command is not ready yet.
Top


CT

Syntax: CT Device
Parameters:
  • Device - the name of the device that io is set to. Eg. CON, AUX, NUL...
Effect: Changes the current IO terminal to Device.
Top

EH

Syntax: EH text
Parameters:
  • text - anything you want to type out from a DOG file.

    Use these special characters to format the text.

    • $$ - the $sign.
    • $_ - space
    • $b - vertical bar ( ¦ )
    • $e - The ESC character (ASCII 27 = 1b in hex)
    • $h - backspace (removes 1 character)
    • $l - Left angle ( < )
    • $g - Right angle ( > )
    • $n - New line
    • $r - Carriage return
    • $t - Tabulator

Effect: Print a (formatted) string to stdio (normally the screen). EH by itself wil put a new line.
Note: You can have many strings, they will be separated by one space regardless of what kind of whitespace you specify on the command line
Top


HH

Syntax: HH
Effect: Prints all DOG commands, and names.
Top

LS

Syntax: LS [arg_list] [search pattern]
Parameters:
  • The args can be given in any order.
  • arg_list can be any of the following args.
    • -a - Any file Attribute
    • -d - Directories Only
    • -f - Files Only
    • -h - help text
    • -l - show volume label
    • -? - syntax
  • search pattern - a list of filenames to find. The * and ? wildcards are OK.
Effect: List files according to switches and search pattern.
Top

MD

Syntax: MD <dir>
Parameters:
  • dir - Name or Path of new directory.
Effect: Creates a new directory as in COMMAND.COM.
Top

MV

Syntax: MV <old_name> <new_name>
Parameters:
  • old_name - The path to the file you want to change. * and ? are OK
  • new_name - The path to the new filename. * and ? are OK
Effect: Renames (or moves) a fiile.
Top

RD

Syntax: RD <dir>
Parameters:
  • dir - Name or path of EMPTY directory to remove.
Effect: Removes a directory as in COMMAND.COM.
Top

RM

Syntax: RM <list>
Parameters:
  • list - A space separated list of files you want to delete. No more multiple commands to delete *.BK! *.BKP etc files!
Effect: Delete files as per the COMMAND.COM DEL/DELETE command.
Top

SE

Syntax: SE [env_var=[string]]
Parameters:
  • env_var - the name of the environment variable. The name is UPPERCASED Predefines ones are:
    • PATH - A ; separated list of directories that are searched in to find a program.
    • PROMPT - The string may consist of normal text and these special characters
      • $$ - the $ sign.
      • $_ OR $S - space
      • $b - vertical bar ( ¦ )
      • $e - The ESC character (ASCII 27 = 1b in hex)
      • $h - Backspace (deletes a char)
      • $l - Left angle ( < )
      • $g - Right angle ( > )
      • $n - New line
      • $r - Carriage return
      • $t - Tabulator
      • $p - Current drive and path
      • $c OR $T - Current time.
      • $d OR $D - Current Date.
    • COMSPEC - Path to DOG
  • string - The value that env_var should have.
Effect: Sets the specified env_var to string in the environment. Without arguments the command prints all env_vars to the screen.
Top

SZ

Syntax: SZ [-k¦-m] [path]
Parameters:
  • -k - give sizes in kb
  • -m - give sizes in Mb
  • path - the directory or file you want to know the size of. Wildcards * and ? ar OK.
Effect: Prints the size of the files in the current directory, or in path.

TP

Syntax: TP file_list
Parameters:
  • file_list - A space separated list of filenames.
Effect: Types the contents of the files in file_list to stdout.
Top

VF

Syntax: VF [ON¦OFF]
Parameters:
  • ON - Set the DOS Verify flag to ON
  • OFF - Set the DOS Verify flag to OFF
Effect: If ON or OFF specified sets Verify flag to this value, else returns the current setting.
Top

VR

Syntax: VR
Effect: Prints the DOG and DOS version. Interprets OS/2 and IBM version correctly, also detects Window$ and FreeDOS and DOSEmu.
Top

XX

Syntax: XX
Effect: Exit the current DOG shell. Works only if the shell is not a primary shell.
Top