unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



mcd(1)								       mcd(1)



NAME

  mcd -	mtools utility to change or report the DOS working directory

SYNOPSIS

  mcd [msdosdirectory]

DESCRIPTION

  Without arguments, the mcd command reports the current device	and working
  directory.  Otherwise, the mcd command changes the current device and
  current working directory relative to	a DOS file system.  Unlike the DOS
  command CD, the mcd command can be used to change to another device.

  The environment variable MCWD	can be used to locate the file where the dev-
  ice and current working directory information	is stored.  The	default	is
  $HOME/.mcwd.	The file is created if it does not exist and a msdosdirectory
  is specified.

  DOS pathnames	that contain the '/' or	'\' separator are supported.  If you
  use the '\' separator	or wildcards, you must enclose file names in quotes
  to protect them from the shell.

  The mcd command supports the use of .. to move back one directory in the
  tree,	however, multiple relative moves such as ../.. are not supported and
  do not affect	your current position in the directory tree.

NOTES

  At logout time, it is	advisable to remove old	.mcwd files.

EXIT STATUS

  The following	exit values are	returned:

  0   Success.

  1   Failure.

ENVIRONMENT VARIABLES

  The following	environment variables affect the execution of mcd:

  MCWD
      If set, this variable names the file that	contains the name of the
      current mtools working directory as established by the mcd command.  If
      this variable is not set,	the file $HOME/.mcwd is	used.






FILES

  $HOME/.mcwd
      Contains the name	of the current mtools working directory	as esta-
      blished by the mcd command.  If this file	does not exist,	the default
      mtools working directory is A:\.

  /usr/bin/mtools/mcd
      Executable file

SEE ALSO

  Commands: mdir(1), mtools(1)