Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iberianpig/8410970 to your computer and use it in GitHub Desktop.
Save iberianpig/8410970 to your computer and use it in GitHub Desktop.
Windowsでサイズ指定のテストファイルを作成するときに。下記例はLinuxでいう所の dd if=/dev/null of=output 15MB.txt bs=1024 count=15000
[Tips]Windowsでの任意サイズのテストファイル作成
コマンドプロンプトを管理者権限で実行
fsutil file createnew 任意パス\任意ファイル名 任意byte
C:\Windows\system32>fsutil file createnew C:\Users\UserName\output_15MB.txt 15360000
ファイル C:\Users\UserName\output_15MB.txt が作成されました
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment