Thursday, June 23, 2022

How to create large file of 50 mb or 2 gb or 48 g file

Open command prompt

write this below command

 fsutil file createnew test.txt 52428800 to create 50 mb file


fsutil file createnew test3.txt 5000000000 to create 4 gb file


fsutil file createnew test3.txt 50000000000 to create 4 gb file


or

Create a 100MB file with real data:

echo "This is just a sample line appended  to create a big file. " > dummy.txt
for /L %i in (1,1,21) do type dummy.txt >> dummy.txt
echo "This is just a sample line appended  to create a big file. " > dummy.txt
for /L %i in (1,1,21) do type dummy.txt >> dummy.txt
The above command creates a 128 MB file

No comments:

Post a Comment