Random File Deleter Code
Small joke script wrote as a sort of prank. Use it at your own risk.
Brought to you by:
sinewave
File | Date | Author | Commit |
---|---|---|---|
.github | 2024-03-15 |
![]() |
[e27922] Create FUNDING.yml |
LICENSE | 2024-02-21 |
![]() |
[be93f3] Initial commit |
README.md | 2024-04-06 |
![]() |
[4c1767] Updated README.md |
script.bat | 2024-02-21 |
![]() |
[909fd9] Add files via upload |
start_script.ps1 | 2024-02-21 |
![]() |
[909fd9] Add files via upload |
This script is for educational purposes only. It is designed to demonstrate the capabilities of batch scripting and PowerShell in automating tasks on Windows systems. The author is not responsible for any damage or loss of data resulting from the use or misuse of this script. Use it at your own risk.
script.bat
and change the file_extension
variable to target the desired file type. The default is set to .prproj
.batch
set "file_extension=.your_extension_here"
start_script.ps1
to run script.bat
at system startup. This can be done by scheduling a task in the Task Scheduler to run start_script.ps1
.After setting up the script and configuring the targeted file extension, the script will automatically run at the specified intervals, deleting a randomly selected file with the specified extension in the script's directory.
To start the deletion process manually, simply run start_script.ps1
using PowerShell, which will execute script.bat
in the background:
```powershell
.\start_script.ps1