FileSetLastModified

Sets the last modified time of a file

Method Signature

FileSetLastModified(file=[any], date=[any])

Arguments

Argument
Type
Required
Description
Default

file

any

true

A file path or object

date

any

true

A date time object or string

Examples

Script Syntax

<bx:script>
	fileSetLastModified( "c:	emp	est1.txt", "#now()#" );
	writeOutput( getFileInfo( "c:	emp	est1.txt" ).LASTMODIFIED );
</bx:script>
  

Additional Examples

Run Example

Last updated

Was this helpful?