" > dummy.txtįor /L %i in (1,1,21) do type dummy.txt > dummy. The second command, runs in a loop for 24 times, and each times doubles the size of the file, by appending it to itself.Ĭreate a 100MB file with real data : echo "This is just a sample line appended to create a big file. The first command(echo…) creates the file dummy.txt with 64 bytes. " > dummy.txtįor /L %i in (1,1,24) do type dummy.txt > dummy.txt echo "This is just a sample line appended to create a big file. If you want to create 1 GB file you need to change the second command as below. Now, copy and execute the below command: dir / b / a: - d / o:n > filelist.txt. ![]() The above action will open the Command Prompt in the current folder. Now, Shift + right-click in the folder, and then select the option Open command prompt here. The above commands create a 1 MB file dummy.txt within few seconds. To start, navigate to the folder with the files you want to create a list. (Run the above two commands one after another or you can add them to a batch file.) " > dummy.txtįor /L %i in (1,1,14) do type dummy.txt > dummy.txt All your files stored in this folder will be encrypted automatically on the fly. echo "This is just a sample line appended to create a big file. In this article we'll explain how to create an encrypted and locked folder in Windows. ![]() If you want to create a file with real data then you can use the below command line script. Note that the above command creates a sparse file which does not have any real data.
0 Comments
Leave a Reply. |