Giter VIP home page Giter VIP logo

thatsinewave / random-file-deleter Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 18 KB

Small joke script wrote as a sort of prank. Use it at your own risk.

Home Page: https://github.com/ThatSINEWAVE/Random-File-Deleter

License: MIT License

Batchfile 86.72% PowerShell 13.28%
batch-scripting customizability file-management powershell warning windows-automation educational-purpose educational-script random-tasks system-startup

random-file-deleter's Introduction

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.

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.
    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.

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:

.\start_script.ps1

random-file-deleter's People

Contributors

thatsinewave avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.