itch.io is community of indie game creators and players

Devlogs

One-file version is here

Self-Duplicating File
A downloadable lainos MX project for Windows

🔁 Major Update: One-File Self-Duplicating Feature Now Available!

Hey creators, developers, and curious minds! 👋

I'm thrilled to announce a new and experimental update to this project — the addition of a single-file, self-duplicating script that demonstrates basic file replication in a controlled, non-malicious, and educational environment.

🆕 What’s Included in This Update?

This update introduces a simple self-duplication behavior into the file. Here’s what it does:

  • One-Time Duplication Per Execution
    Each time you run the file, it creates one new copy of itself in the same folder. No loops, no infinite spawns — just a single duplication event.

  • 🧠 Same Code, Same Extension
    The duplicate is an exact replica of the original file: same code, same file extension, same logic.

  • 🧪 Educational Focus
    This was designed as a safe demonstration of how self-replication could work in a file. It's ideal for learning more about:

    • File I/O in Python

    • Code introspection (a file reading its own source)

    • Basic automation and logic behind file duplication

    • How programs can “know” and replicate themselves

⚙️ Technical Details

  • 🐍 Written in Python
    The code uses introspection (reading its own contents), creates a new file with a unique name, and writes itself into it.

  • 📦 Also Available as .EXE
    A compiled version is provided for those who prefer not to run raw Python or who just want to click and observe behavior easily on Windows.

  • 🎯 Safe by Design
    This script is 100% harmless:

    • It does not hide or run in the background.

    • It duplicates only once per run.

    • It only writes files into the same folder.

    • There’s no obfuscation, persistence, or tampering involved.

🧩 Use Cases

  • 📚 Learning Tool
    Perfect for beginner-to-intermediate programmers who want to explore how a program can interact with itself.

  • 🔬 Classroom Demos
    Teachers or instructors looking to show students the concept of file cloning and self-reference.

  • 🧪 Experiments in Autonomy
    Hobbyists or tinkerers exploring early forms of “self-aware” code structures or procedural content replication.

🚨 A Final Note on Ethics and Safety

Please remember: this is not malware. It’s a learning experiment.

Although the concept of a file duplicating itself might sound alarming, this version is intentionally limited to ensure it doesn’t run amok. Still, treat the behavior with care and respect — and never apply this kind of logic to harmful software or systems without permission.

Thanks again to everyone who continues to follow and support this project. If you found this update fun, helpful, or even weirdly fascinating, feel free to leave a comment, review, or suggestion for future experiments! 🚀

Stay creative and curious,
Lannosi 🎮🧠

Files

  • One-File-Version 6.8 MB
    9 days ago
Download Self-Duplicating File
Leave a comment