In Windows, need to create a 90 gig dummy file filled with contents (file cannot be blank). Any ideas?

In Windows, I need to create a 90 gig dummy file filled with contents (file cannot be blank, can be anything text, whatever).  Any ideas?
LVL 1
LB1234Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph DalyCommented:
If you wanted to do this with powershell.

$file="C:\file.txt"
"this is a test file" >> $file
while ($file.length -lt 1000) {
"this is a test file" >> $file}
0
Joseph DalyCommented:
Sorry that last script was a little weird with the file size. The below should work for you better.

$file="C:\file.txt"
"this is a test file" >> $file
while ((Get-Item $file).length -lt 90000000kb) {
"this is a test file" >> $file}


The more text that you write to the file the faster the file will grow. I just used "this is a test file" to get the script going.
0
LB1234Author Commented:
Joseph can i put this all on the same line?  It's returning an error.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Joseph DalyCommented:
This is a powershell script. So basically open an powershell window and copy/paste the entire block of code into the window. Then hit enter and you should see the file created on your C drive.

If you still receive errors please post a screenshot of them.
0
LB1234Author Commented:
Actually guys, i just found a util called FileFiller which did the job perfectly.  Thanks for the help.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LB1234Author Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for LB1234's comment #a40246844

for the following reason:

Found the easiest solution to my problem.
0
Joseph DalyCommented:
There were two other answers that solved this problem as well. I believe points should be split.
0
LB1234Author Commented:
As mentioned, the code was pasted in but returned an error code.  Why would I spend time to debug when I've already found a solution and created the 90 gig file before you even replied offering to debug?

The other solution required a very old version of .NET to be installed to work.  Current version would not.  Not going to uninstall the current version, install the old one, then when done, uninstall that one, and put the new one back on.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.