get details like date/time modified from a file

zenewbie

Client
Регистрация
25.12.2013
Сообщения
215
Благодарностей
17
Баллы
18
Is there a way to read the details from a file, for example when "xyz.jpg" was last modified?
 

nicanil

Client
Регистрация
06.03.2016
Сообщения
2 242
Благодарностей
1 807
Баллы
113
You can do it with this C# snippet:
C#:
var fileInfo = new FileInfo(project.Variables["filepath"].Value);
return fileInfo.LastWriteTime;
There should be a "filepath" variable in your project where full path to a file is stored.
 
  • Спасибо
Реакции: GLADO

zenewbie

Client
Регистрация
25.12.2013
Сообщения
215
Благодарностей
17
Баллы
18
Thanks a lot!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)