Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 47 lines (42 sloc) 675 Bytes
getName(file)
{
SplitPath, file,,,,fileNameNoExt
return fileNameNoExt
}
getExtension(file)
{
StringCaseSense, Off
SplitPath, file,,,extension
return extension
}
getSize(file)
{
global thisRule
IniRead, Units, rules.ini, %thisRule%, Units
FileGetSize, fileSize, %file%
if (Units = "KB")
{
fileSize := fileSize/1024
}
if (Units = "MB")
{
fileSize := fileSize/1048576
}
return fileSize
}
getDateLastOpened(file)
{
FileGetTime, lastAccess, %file%, A
return lastAccess
}
getDateLastModified(file)
{
FileGetTime, lastModified, %file%, M
return lastModified
}
getDateCreated(file)
{
FileGetTime, created, %file%, C
;Msgbox, %created%
return created
}
Something went wrong with that request. Please try again.