Last active
April 12, 2022 11:31
-
-
Save NikitaBersenev/2cdf755a4264319420175fce1485d3ff to your computer and use it in GitHub Desktop.
fpet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd $Home | |
| cd Desktop | |
| Remove-Item 'fpet' -Recurse | |
| Remove-Item '1c_rab.zip' -Recurse | |
| Remove-Item '-l' -Recurse | |
| $ProgressPreference = 'SilentlyContinue' | |
| Invoke-WebRequest -URI https://storage.googleapis.com/drive-bulk-export-anonymous/20220411T142121Z/4133399871716478688/89495402-5415-419e-bfc9-ab264f4847a8/1/a724a692-4b68-449e-a499-12f75c14c829?authuser -OutFile 1c_rab.zip | |
| Expand-Archive 1c_rab.zip -DestinationPath . -Force | |
| $rand = Get-Random -Maximum 10000 | |
| Rename-Item "C:\Documents and Settings\All Users\1C" "C:\Documents and Settings\All Users\1C_$rand" | |
| New-Item -Path "C:\Documents and Settings\All Users\" -Name "1C" -ItemType "directory" | |
| Copy-Item "$Home\Desktop\fpet\1C" -Destination "C:\Documents and Settings\All Users\1C" -Recurse | |
| Rename-Item "C:\Program Files\1cv8" "C:\Program Files\1cv8_$rand" | |
| New-Item -Path "C:\Program Files\" -Name "1cv8" -ItemType "directory" | |
| Copy-Item "$Home\Desktop\fpet\1cv8" -Destination "C:\Program Files\1cv8" -Recurse | |
| New-Item -Path "1C_rab_$rand.exe" -ItemType SymbolicLink -Value "C:\Program Files\1cv8\1cv8\8.3.19.1522\bin\1cv8.exe" | |
| Remove-Item 'fpet' -Recurse | |
| Remove-Item '1c_rab.zip' -Recurse | |
| Remove-Item '-l' -Recurse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment