PoshCode Archive  Check-in [43450bf8b2]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Check and md5 or sha1 hash in a “single line” of PowerShell.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:43450bf8b2a2402476264768c9102a8ff8c31d8bf425e6810f17a0fae5d1b56a
User & Date: Joel Bennett 2018-06-10 14:27:53
Context
2018-06-10
14:27
Check md5/sha1/etc hashes check-in: 2c26578de2 user: Joel Bennett tags: trunk
14:27
Check and md5 or sha1 hash in a “single line” of PowerShell. check-in: 43450bf8b2 user: Joel Bennett tags: trunk
14:27
This script customizes the welcome screen which PowerGUI admin console displays on start-up or when a folder is selected in the left-hand tree. check-in: e111cdcac1 user: Dmitry Sotnikov tags: trunk
Changes

Changes to Hash-Checker-On-One-Line.ps1.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# encoding: ascii
# api: powershell
# title: Hash Checker On One Line
# description: Check and md5 or sha1 hash in a “single line” of PowerShell.
# version: 0.1
# author: Joel Bennett
# license: CC0
# x-poshcode-id: 6209
# x-archived: 2016-03-18T21:54:14
# x-published: 2016-02-09T20:42:00
#
#
# to make it readable, I've wrapped the lines, but you can remove all the line breaks:
&{ 
  PARAM($FileName,$HashFileName) 
  ((Get-Content $HashFileName) -match $FileName)[0].split(" ")[0] -eq 
  [string]::Join("", (







|
|
|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# encoding: ascii
# api: powershell
# title: Hash Checker On One Line
# description: Check and md5 or sha1 hash in a “single line” of PowerShell.
# version: 0.1
# author: Joel Bennett
# license: CC0
# x-poshcode-id: 988
# x-archived: 2016-05-17T14:21:13
# x-published: 2009-04-01T11:55:00
#
#
# to make it readable, I've wrapped the lines, but you can remove all the line breaks:
&{ 
  PARAM($FileName,$HashFileName) 
  ((Get-Content $HashFileName) -match $FileName)[0].split(" ")[0] -eq 
  [string]::Join("", (