/Study-Mode

perform simple actions

Primary LanguagePythonMIT LicenseMIT

Study-Mode

Run study-related tasks easily with this script and zero basic programming knowledge.

Usage Guide

  1. Create a file with the .study extension
browser google.com
notepad test.txt
run echo Hello, World!
explorer .
python script.py
open document.pdf
delete old_file.txt
create new_file.txt
copy source.txt destination.txt
move old_location.txt new_location.txt
  1. Run study.py or the compiled study.exe
  • This script will execute the commands in the .study file:
    • Open google.com in your default browser,
    • Open the test.txt file in Notepad,
    • Run the echo Hello, World! command in cmd,
    • Open the current directory in file explorer,
    • Execute script.py with Python,
    • Open document.pdf with the default application,
    • Delete old_file.txt,
    • Create new_file.txt,
    • Copy source.txt to destination.txt,
    • Move old_location.txt to new_location.txt.

Commands

  1. browser

    • Usage

    browser <url>
    
    • Example

    browser google.com
    
  2. notepad

    • Usage

    notepad <filePath>
    
    • Example

    notepad test.txt
    
  3. run

    • Usage

    run <command>
    
    • Example

    run echo Hello, World!
    
  4. explorer

    • Usage

    explorer <path>
    
    • Example

    explorer .
    
  5. python

    • Usage

    python <filePath>
    
    • Example

    python script.py
    
  6. open

    • Usage

    open <filePath>
    
    • Example

    open document.pdf
    
  7. delete

    • Usage

    delete <filePath>
    
    • Example

    delete old_file.txt
    
  8. create

    • Usage

    create <filePath>
    
    • Example

    create new_file.txt
    
  9. copy

    • Usage

    copy <sourcePath> <destinationPath>
    
    • Example

    copy source.txt destination.txt
    
  10. move

    • Usage

    move <sourcePath> <destinationPath>
    
    • Example

    move old_location.txt new_location.txt
    

Build Guide

  1. Install PyInstaller
py -m pip install pyinstaller
  1. Compile
py -m PyInstaller --noconfirm --onefile --windowed --name "Study" "study.py"