Click or drag to resize

FileSetTimestamps Method (String, DateTime, DateTime, DateTime, Boolean, PathFormat)

[AlphaFS] Sets all the date and time stamps for the specified file, at once.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static void SetTimestamps(
	string path,
	DateTime creationTime,
	DateTime lastAccessTime,
	DateTime lastWriteTime,
	bool modifyReparsePoint,
	PathFormat pathFormat
)

Parameters

path
Type: SystemString
The file for which to set the dates and times information.
creationTime
Type: SystemDateTime
A DateTime containing the value to set for the creation date and time of path. This value is expressed in local time.
lastAccessTime
Type: SystemDateTime
A DateTime containing the value to set for the last access date and time of path. This value is expressed in local time.
lastWriteTime
Type: SystemDateTime
A DateTime containing the value to set for the last write date and time of path. This value is expressed in local time.
modifyReparsePoint
Type: SystemBoolean
If , the date and time information will apply to the reparse point (symlink or junction) and not the file or directory linked to. No effect if path does not refer to a reparse point.
pathFormat
Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
See Also