Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal
- echo enter your api key here:
- set /p key=
- rem Spécifiez l'URL de la page Pastebin à télécharger
- set url=https://pastebin.com/raw/yemaQHx4
- rem Téléchargez la page et enregistrez-la dans un fichier temporaire
- curl %url% -o temp.txt
- rem Remplacez le texte "apikeyhere" par "newapikey"
- set "replacementText=%key%"
- powershell -Command "(Get-Content temp.txt) -replace 'apikeyhere', '%replacementText%' | Set-Content temp.txt"
- rem Enregistrez le contenu modifié dans un fichier .py
- type temp.txt > script.py
- echo start script.py > Start_script.bat
- rem Nettoyez les fichiers temporaires
- del temp.txt
- start Start_script.bat
- echo Script généré avec succès!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement