Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $FileName = "$PSScriptRoot\APIUpdate"
- $LocalVersion = [version](Get-Content $PSScriptRoot\version.txt)
- $RemoteVersion = [version](Invoke-RestMethod http://come-join.us/update/version.txt)
- If ($LocalVersion -lt $RemoteVersion) {
- $true
- (New-Object Net.WebClient).DownloadFile('https://www.dropbox.com/sh/89hacxj86otvgec/AAB2fOZ0TI1YoV79XD3SCCeCa?dl=1',"$FileName ");
- (new-object -com shell.application).namespace("$PSScriptRoot").CopyHere((new-object -com shell.application).namespace("$FileName").Items(),16)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement