Quickly create large file on a Windows system

前端 未结 23 2329
别那么骄傲
别那么骄傲 2020-12-07 06:35

In the same vein as Quickly create a large file on a Linux system, I\'d like to quickly create a large file on a Windows system. By large I\'m thinking 5 GB.

23条回答
  •  天命终不由人
    2020-12-07 07:19

    I was looking for a way to create a large dummy file with space allocation recently. All of the solutions look awkward. Finally I just started the DISKPART utility in Windows (embedded since Windows Vista):

    DISKPART
    CREATE VDISK FILE="C:\test.vhd" MAXIMUM=20000 TYPE=FIXED
    

    Where MAXIMUM is the resulting file size, 20 GB here.

提交回复
热议问题