Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1711

Find the Last Modified Date/Time of a file via download link

$
0
0
Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  28.01.14 x64   Windows 10 [Version 10.0.19043.1288]

Here's an alias that allows one to find the last modified date/time of a file on a website;

Code:
last-modified=*pshell /s "$http = new-object System.Net.WebClient; $http.OpenRead('%1').Close(); $http.ResponseHeaders['Last-Modified']"

Proof;
Code:
e:\utils>last-modified https://jpsoft.com/downloads/v28/tcc.exe
Sun, 22 Aug 2021 02:59:54 GMT

Joe

Ref: Determine size of file via download...

Read more

Viewing all articles
Browse latest Browse all 1711