Skip to content

titanhp/symlink-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symbolic Link Creator

A cross-platform GUI application for creating symbolic and hard links on Windows, macOS, and Linux.

Features

  • Create symbolic links for files and folders
  • Create hard links for files (where supported)
  • Drag-and-drop support for selecting paths
  • User-friendly interface built with Tkinter and TkinterDnD2
  • Windows: Automatically requests admin privileges when needed

Requirements

  • Python 3.7+
  • tkinterdnd2
  • Tkinter (usually included with Python)
  • On Windows: Admin rights required for creating links

Installation

  1. Clone or download this repository.
  2. Install dependencies:
    pip install tkinterdnd2

Usage

Run the application with:

python Symlink-Creator.py

Steps

  1. Select the type of symlink (file or folder).
  2. Choose the location and name for your link.
  3. Select the destination (the real file or folder to link to).
  4. Choose the link type (symbolic or hard link).
  5. Click "Create Link".

Notes

  • On Windows, creating links may require administrator privileges.
  • Hard links can only be created for files, not folders.
  • Drag-and-drop is supported for path fields.

Project Structure

Symlink-Creator.py         # Main application script
symlink.ico                # Application icon (optional)
build/                     # PyInstaller build output (ignored by git)
*.spec                     # PyInstaller spec files
.gitignore                 # Git ignore rules

Building a Standalone Executable with Icon (Windows)

You can use PyInstaller to build a standalone .exe with a custom icon:

  1. Install PyInstaller:

    pip install pyinstaller
  2. Make sure you have your icon file (e.g., symlink.ico) in the project directory.

  3. Build the executable with the icon:

    pyinstaller --noconfirm --onefile --windowed --icon symlink.ico Symlink-Creator.py
    • The --icon symlink.ico option sets the icon for the .exe file.
    • The .exe will be created in the dist folder.

Note:

  • The --windowed flag prevents a console window from appearing.
  • If you use additional data files, you may need to add --add-data options.

License

MIT License


*Created with TkinterDnD2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages