Windows batch file folder name space




















Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Windows Vista Applications. For compatibility of 3rd party applications, use the ACT forum. Sign in to vote. Hello, I would like to ask about using batch file to open a series of PDF files.

For example, the older MS-DOS FAT file system supports a maximum of 8 characters for the base file name and 3 characters for the extension, for a total of 12 characters including the dot separator.

This is commonly known as an 8. The following fundamental rules enable applications to create and process valid names for files and directories, regardless of the file system:.

Use a period to separate the base file name from the extension in the name of a directory or file. The backslash divides the file name from the path to it, and one directory name from another directory name in a path.

You cannot use a backslash in the name for the actual file or directory because it is a reserved character that separates the names into components. Do not assume case sensitivity. For more information, see CreateFile.

Volume designators drive letters are similarly case-insensitive. Use any character in the current code page for a name, including Unicode characters and characters in the extended character set — , except for the following:. Characters whose integer representations are in the range from 1 through 31, except for alternate data streams where these characters are allowed. For more information about file streams, see File Streams.

Use a period as a directory component in a path to represent the current directory, for example ". For more information, see Paths. Use two consecutive periods.. Also avoid these names followed immediately by an extension; for example, NUL. For more information, see Namespaces. Do not end a file or directory name with a space or a period. Although the underlying file system may support such names, the Windows shell and user interface does not. However, it is acceptable to specify a period as the first character of a name.

For example, ". When you create a long file name, Windows may also create a short 8. This 8. Not all file systems follow the tilde substitution convention, and systems can be configured to disable 8. Therefore, do not make the assumption that the 8. To request 8. This is true even if a long file name contains extended characters, regardless of the code page that is active during a disk read or write operation. Files using long file names can be copied between NTFS file system partitions and Windows FAT file system partitions without losing any file name information.

In this case, the short file name is substituted if possible. The path to a specified file consists of one or more components , separated by a special character a backslash , with each component usually being a directory name or file name, but with some notable exceptions discussed below. It is often critical to the system's interpretation of a path what the beginning, or prefix , of the path looks like.

The command line uses the space character to separate the name of the file being renamed from the new name of the file. When a file contains spaces, it must be surrounded in quotation marks to ensure the proper file is renamed.

Otherwise, the command line interprets the words following each space as new file names.



0コメント

  • 1000 / 1000