mirror of
https://github.com/sstent/Scripts.git
synced 2026-01-27 07:33:01 +00:00
added scripts and SUPERMICRO
This commit is contained in:
18
akamai.ps1
Normal file
18
akamai.ps1
Normal file
@@ -0,0 +1,18 @@
|
||||
#input should finish at inetpub\images\ \\inystg01\inetpub\software-releases\NookApps-06-29\Images-06-29-NookApps21-Final\InetPub\images"
|
||||
|
||||
$find = $Args[0]
|
||||
|
||||
$rep="http://images.barnesandnoble.com"
|
||||
get-childitem -recurse $args[0] | foreach-object -process { $_.FullName } | %{$_ -replace [regex]::Escape($find), $rep} | %{$_ -replace '\\','/'} > c:\akamai.txt
|
||||
|
||||
|
||||
$rep="http://simg1.imagesbn.com"
|
||||
get-childitem -recurse $Args[0] | foreach-object -process { $_.FullName } | %{$_ -replace [regex]::Escape($find), $rep} | %{$_ -replace '\\','/'} >> c:\akamai.txt
|
||||
|
||||
|
||||
$rep="http://simg2.imagesbn.com"
|
||||
get-childitem -recurse $Args[0] | foreach-object -process { $_.FullName } | %{$_ -replace [regex]::Escape($find), $rep} | %{$_ -replace '\\','/'} >> c:\akamai.txt
|
||||
|
||||
|
||||
$rep="http://sjs.barnesandnoble.com"
|
||||
get-childitem -recurse $Args[0] | foreach-object -process { $_.FullName } | %{$_ -replace [regex]::Escape($find), $rep} | %{$_ -replace '\\','/'} >> c:\akamai.txt
|
||||
Reference in New Issue
Block a user