% File src/library/utils/man/windows/shortPathName.Rd
% Part of the R package, http://www.R-project.org
% Copyright 1995-2008 R Core Development Team
% Distributed under GPL 2 or later

\name{shortPathName}
\alias{shortPathName}
\title{Express File Paths in Short Form}
\description{
  Convert file paths to the short (DOS) form, with 8+3 path components
  and no spaces.  This is an interface to the Windows API call
  \code{GetShortPathName}.
}
\usage{
shortPathName(path)
}
\arguments{
  \item{path}{character vector of file paths.}
}
\value{
  A character vector.  The path separator will be \code{\\}.  If the
  file does not exist, the supplied path will be returned with slashes
  replaced by backslashes.
}
\seealso{
  \code{\link{normalizePath}}.
}
\examples{
cat(shortPathName(c(R.home(), tempdir())), sep = "\n")
}
\keyword{ utilities }
