1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windows のコマンドプロンプトでダミーファイル生成する方法。

1
Last updated at Posted at 2025-06-03

たまに検証でいろいろなファイルサイズのダミーファイルを作りたくなるので、その方法をメモ。

fsutil file createnew test_10MB.zip 10485760
  • test_10MB.zip:生成されるファイル名(実際は中身のないファイル)
  • 10485760:ファイルサイズ(バイト単位。10MBの場合)
サイズ表記 バイト数(Byte)
1MB 1048576
50MB 52428800
100MB 104857600
500MB 524288000
1GB 1073741824
1.5GB 1610612736
2GB 2147483648

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?