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

filesetlastmodified( expandPath( "./testcase.txt" ), dateAdd( "d", 2, now() ) );
writeDump( getfileinfo( expandPath( "./testcase.txt" ) ).LASTMODIFIED );

Last updated

Was this helpful?