Quickly create large file on a Windows system

前端 未结 23 2379
别那么骄傲
别那么骄傲 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:24

    You can use the cat powershell command.

    First create a simple text file with a few characters. The more initial chars you enter, the quicker it becomes larger. Let's call it out.txt. Then in Powershell:

    cat out.txt >> out.txt
    

    Wait as long as it's necessary to make the file big enough. Then hit ctrl-c to end it.

提交回复
热议问题