Skip to content

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

Open
5ynaptic wants to merge 1 commit into
Olsro:mainfrom
5ynaptic:5ynaptic-Batch
Open

Update win64-convert-hdd-to-vmware.bat#24
5ynaptic wants to merge 1 commit into
Olsro:mainfrom
5ynaptic:5ynaptic-Batch

Conversation

@5ynaptic

@5ynaptic 5ynaptic commented Jan 4, 2025

Copy link
Copy Markdown

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

Olsro commented Jan 6, 2025

Copy link
Copy Markdown
Owner

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