hi,
im writing a backup script on windows...so I strated to check how I can easily get a files timestamp and the extensions or txpe of the file...
For the timpestamp I use stat(), for the filetype I use a workaround with the system command, the FOR loop and write the ouptput to a textfile...
And that's my problem...there must be a more easier way to geht just the type/extension of a file?????
I thought about something with regex, but I'm not sure if it works also on computers where the file extensions are not shown (there is a option which is named like "don't show extensions of known files")
I really hope you could help me..!