Registriert seit: 29. Mai 2002
37.621 Beiträge
Delphi 2006 Professional
|
Re: kopieren und gleichzeitig umbenennen einer Datei
1. Feb 2005, 14:33
Nein. Sollte der Dateiname nicht den namenskonventionen für einen Dateinamen entsprechen, dann geht es nicht:
Zitat von PSDK:
Naming Conventions
The following rules enable applications to create and process valid names for files and directories regardless of the file system in use:
- Use a period (.) to separate the base file name from the extension in a directory name or file name.
- Backslashes (\) are used to separate components in paths (dividing the file name from the path to it, or directories from one another in a path). You cannot use them in file or directory names, however, they may be required as part of volume names— for example, "C:\". Note that UNC names must adhere to the following format: \\<server>\<share>.
- Use any character in the current code page for a name, except characters in the range 0 through 31 or any character explicitly disallowed by the file system. A name can contain characters in the extended character set (128–255). However, it cannot contain the following reserved characters:
< > : " / \ |
- The following reserved device names cannot be used as the name of a file: CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed by an extension (for example, NUL.tx7).
- Do not assume case sensitivity. Consider names such as OSCAR, Oscar, and oscar to be the same.
- Do not end a file or directory name with a trailing space or a period. Although the underlying file system may support such names, the operating system does not.
- Use a period (.) as a directory component in a path to represent the current directory.
- Use two consecutive periods (..) as a directory component in a path to represent the parent of the current directory.
Michael Ein Teil meines Codes würde euch verunsichern.
|
|
Zitat
|