Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thatsinewave/random-file-deleter
Small joke script wrote as a sort of prank. Use it at your own risk.
https://github.com/thatsinewave/random-file-deleter
batch-script batch-scripting customizability deleter educational-purpose educational-script file-delete-utility file-management good-first-contribution good-first-issue good-first-pr good-first-project powershell powershell-script random-tasks system-startup testing thatsinewave warning windows-automation
Last synced: 3 days ago
JSON representation
Small joke script wrote as a sort of prank. Use it at your own risk.
- Host: GitHub
- URL: https://github.com/thatsinewave/random-file-deleter
- Owner: ThatSINEWAVE
- License: mit
- Created: 2024-02-21T00:14:13.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-23T22:53:29.000Z (7 months ago)
- Last Synced: 2024-04-23T23:53:55.135Z (7 months ago)
- Topics: batch-script, batch-scripting, customizability, deleter, educational-purpose, educational-script, file-delete-utility, file-management, good-first-contribution, good-first-issue, good-first-pr, good-first-project, powershell, powershell-script, random-tasks, system-startup, testing, thatsinewave, warning, windows-automation
- Language: Batchfile
- Homepage: https://github.com/ThatSINEWAVE/Random-File-Deleter
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Random File Deleter
This repository contains a small script (`script.bat`) intended to run at startup and delete a randomly chosen file at intervals ranging from 1 to 10 minutes. The script targets files with a specific extension, which can be modified by the user. A PowerShell script (`start_script.ps1`) is included to facilitate running the batch script in the background at startup.
## Warning
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.
## Features
- **Random Interval Execution**: Deletes a file at a random interval between 1 and 10 minutes.
- **Customizable File Targeting**: Users can specify the file extension of the files to be targeted for deletion.
- **Startup Execution**: Includes a method to run the script at system startup, ensuring the random deletion process begins automatically.## ☕ [Support my work on Ko-Fi](https://ko-fi.com/thatsinewave)
## Setup
1. **Modify File Extension**: Open `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"
```
2. **Configure Startup Task**: Use `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`.# [Join my discord server](https://discord.gg/2nHHHBWNDw)
## Usage
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.
### Starting the Script Manually
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