Skip to content

Commit 032e38b

Browse files
committed
Added File_SetLastAccessTime, File_SetLastAccessTimeUtc, File_SetLastWriteTime, File_SetLastWriteTimeUtc articles
1 parent f5279ab commit 032e38b

7 files changed

Lines changed: 90 additions & 2 deletions

docs2/pages/documentations/file/file-set-creation-time-utc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ File_SetCreationTimeUtc
1616
## Example
1717

1818
```csharp
19-
EXEC File_SetCreationTimeUtc @path = 'C:\destination', @creationTime = '2018-12-05'
19+
EXEC File_SetCreationTimeUtc @path = 'C:\Temp\MyTest.txt', @creationTime = '2018-12-05'
2020
```
2121

docs2/pages/documentations/file/file-set-creation-time.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ File_SetCreationTime
1616
## Example
1717

1818
```csharp
19-
EXEC File_SetCreationTime @path = 'C:\destination', @creationTime = '2018-12-05'
19+
EXEC File_SetCreationTime @path = 'C:\Temp\MyTest.txt', @creationTime = '2018-12-05'
2020
```
2121

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File_SetLastAccessTimeUtc
2+
3+
`File_SetLastAccessTimeUtc` sets the date and time, in coordinated universal time (UTC), that the specified file was last accessed.
4+
5+
```csharp
6+
File_SetLastAccessTimeUtc
7+
@path NVARCHAR (MAX),
8+
@lastAccessTime DATETIME
9+
```
10+
11+
## Parameters
12+
13+
- **path**: The file for which to set the access date and time information.
14+
- **lastAccessTime**: A DateTime containing the value to set for the last access date and time of path. This value is expressed in UTC time.
15+
16+
## Example
17+
18+
```csharp
19+
EXEC File_SetLastAccessTimeUtc @path = 'C:\Temp\MyTest.txt', @lastAccessTime = '2018-12-05'
20+
```
21+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File_SetLastAccessTime
2+
3+
`File_SetLastAccessTime` sets the date and time the specified file was last accessed.
4+
5+
```csharp
6+
File_SetLastAccessTime
7+
@path NVARCHAR (MAX),
8+
@lastAccessTime DATETIME
9+
```
10+
11+
## Parameters
12+
13+
- **path**: The file for which to set the access date and time information.
14+
- **lastAccessTime**: A DateTime containing the value to set for the last access date and time of path. This value is expressed in local time.
15+
16+
## Example
17+
18+
```csharp
19+
EXEC File_SetLastAccessTime @path = 'C:\Temp\MyTest.txt', @lastAccessTime = '2018-12-05'
20+
```
21+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File_SetLastWriteTimeUtc
2+
3+
`File_SetLastWriteTimeUtc` sets the date and time, in coordinated universal time (UTC), that the specified file was last written to.
4+
5+
```csharp
6+
File_SetLastWriteTimeUtc
7+
@path NVARCHAR (MAX),
8+
@lastWriteTime DATETIME
9+
```
10+
11+
## Parameters
12+
13+
- **path**: The file for which to set the date and time information.
14+
- **lastWriteTime**: A DateTime containing the value to set for the last write date and time of path. This value is expressed in UTC time.
15+
16+
## Example
17+
18+
```csharp
19+
EXEC File_SetLastWriteTimeUtc @path = 'C:\Temp\MyTest.txt', @lastWriteTime = '2018-12-05'
20+
```
21+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File_SetLastWriteTime
2+
3+
`File_SetLastWriteTime` sets the date and time that the specified file was last written to.
4+
5+
```csharp
6+
File_SetLastWriteTime
7+
@path NVARCHAR (MAX),
8+
@lastWriteTime DATETIME
9+
```
10+
11+
## Parameters
12+
13+
- **path**: The file for which to set the date and time information.
14+
- **lastWriteTime**: A DateTime containing the value to set for the last write date and time of path. This value is expressed in local time.
15+
16+
## Example
17+
18+
```csharp
19+
EXEC File_SetLastWriteTime @path = 'C:\Temp\MyTest.txt', @lastWriteTime = '2018-12-05'
20+
```
21+

docs2/pages/documentations/file/file.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ Provides methods for the creation, copying, deletion, moving, and opening of a s
2222
| [File_Replace(sourceFileName, destFileName, destBackupFileName, ignoreMetadataErrors)](/file-replace) | Replaces the contents of a specified file with the contents of another file, deleting the original file, and creating a backup of the replaced file and optionally ignores merge errors. | [Try it]()|
2323
| [File_SetCreationTime(path, creationTime)](/file-set-creation-time) | Sets the date and time the file was created. | [Try it]()|
2424
| [File_SetCreationTimeUtc(path, creationTime)](/file-set-creation-time-utc) | Sets the date and time, in coordinated universal time (UTC), that the file was created. | [Try it]()|
25+
| [File_SetLastAccessTime(path, lastAccessTime)](/file-set-last-access-time) | Sets the date and time the file was created. | [Try it]()|
26+
| [File_SetLastAccessTimeUtc(path, lastAccessTime)](/file-set-last-access-time-utc) | Sets the date and time, in coordinated universal time (UTC), that the specified file was last accessed. | [Try it]()|
27+
| [File_SetLastWriteTime(path, lastWriteTime)](/file-set-last-write-time) | Sets the date and time that the specified file was last written to. | [Try it]()|
28+
| [File_SetLastWriteTimeUtc(path, lastWriteTime)](/file-set-last-write-time-utc) | Sets the date and time, in coordinated universal time (UTC), that the specified file was last written to. | [Try it]()|

0 commit comments

Comments
 (0)