How to get playtime duration of a file?

I have files in a folder and have to save info of them, How can I get playtime duration of a audio/video file ?

1 Like

Hello @dmakheja

Does that mean there are audio video files with you and you need to get the duration?

Try with Get file info activity.

I tried but couldn’t find anything related to duration. Can you help me if you know the exact way to get duration ?

Hi @dmakheja

kindly check this out
they have a sample code


(post deleted by author)

My project is in VisualBasic so CSharp is not supported. Any way to do it in VisualBasic ?