Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update win64-convert-hdd-to-vmware.bat #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

5ynaptic
Copy link

@5ynaptic 5ynaptic commented Jan 4, 2025

This batch script handles many common pitfalls of converting .qcow2 files on Windows:

  1. Admin Rights are verified up front.
  2. Path Length is automatically handled with a symlink for overly long paths.
  3. Cleanup is thorough, removing the symlink if it was created.
  4. User-Friendly messaging at each step helps clarify what went right or wrong.

Summary & Best Practices

  1. Admin Check: Ensures elevated privileges are available for creating symbolic links and accessing system files.
  2. Long Path Handling:
    • Automatically checks if %INPUT_FILE% > 260 chars.
    • Creates a short symlink at C:\ClickWheelGames if necessary, bypassing MAX_PATH issues.
  3. Cleanup:
    • If a symlink was created, it’s removed after success or failure to avoid clutter.
  4. Informative Logging:
    • The script echoes key steps and errors, making it easier to troubleshoot.

@Olsro
Copy link
Owner

Olsro commented Jan 6, 2025

Tried to use your version of the script. If I try to launch it with admin rights, nothing happen (the console window does not even appear, it's like blinking during 0.5s then auto close). I am on Windows 11 24H2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants