Skip to content

Instantly share code, notes, and snippets.

@slackingfred
Created January 3, 2024 08:32
Show Gist options
  • Save slackingfred/4a70d94fe9ebee847c8b30da7fd650a6 to your computer and use it in GitHub Desktop.
Save slackingfred/4a70d94fe9ebee847c8b30da7fd650a6 to your computer and use it in GitHub Desktop.
Quickly create large non-sparse NTFS file for use of virtual machine disk image
@echo off
REM Administrator privilege required
fsutil FILE createNew "%1" "%2"
fsutil FILE setValidData "%1" "%2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment