shortPathName
Convert File Name to DOS 8.3 Format

### Description

On Windows, converts the name of a file to one that works unquoted in a cmd script.

### Usage

    shortPathName(path)

### Arguments

path | a vector of character strings, presumably naming files.

### Details

If an input path does not refer to an existing file, then the corresponding output path is the same as the input path. On Linux, the output is a copy of the names in the input.
Value
returns a vector the length of the input. On Windows, this vector contains DOS-style file names (up to 8 characters, a dot, and then up to 3 characters per component, with no spaces or backslashes between components) that refer to the same file as the input file names.
See Also
system, normalizePath.
Examples

    shortPathName(R.home())
    normalizePath(R.home()) == normalizePath(shortPathName(R.home()))

Package utils version 6.1.5-18
Package Index