Skip to content

Commit 92822ca

Browse files
image code
1 parent 05391cd commit 92822ca

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

blog post html convert code.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<#
22
3-
$Url = 'https://i1.wp.com/sqldbawithabeard.com/wp-content/uploads/2020/08/image-16.png'
3+
$Images = 3..8
4+
$path = '2020/07/'
5+
6+
foreach($image in $Images){
7+
$Url = 'https://i1.wp.com/sqldbawithabeard.com/wp-content/uploads/' + $path + 'image-' + $Image + '.png'
48
$fileName = $Url.Split('/')[-1]
59
$filepathpart = $Url.Split('/')[-3..(-1)] -join '\'
610
$OutputFile = 'C:\Users\mrrob\OneDrive\Documents\GitHub\robsewell\assets\uploads\' + $filepathpart
7-
811
Invoke-WebRequest -Uri $Url -OutFile $OutputFile
12+
}
13+
914
1015
#>
1116

0 commit comments

Comments
 (0)