Parameters
- relativeName
- Relative name of the new file.
- replaceIfExists
- true if the new file should replace an existing file; false otherwise.
The relativeName parameter can include relative path information, in which ".." means "previous folder". For example: "folder/file.txt", "../file.txt", etc.
If a file named relativeName already exist in the destination folder and replaceIfExists is false, an exception is thrown. If replaceIfExists is true, the existing file is replaced by the newly created one.
If the physical folder in which the new file is to be created does not exist, it is created.
The current property values (such as FileSystemItem.Attributes) are applied to the newly created file.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2