[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2014-08-07
9
Medium Priority
?
364 Views
Last Modified: 2014-08-24
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?
0
Comment
Question by:LB1234
  • 4
  • 4
8 Comments
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 40246324
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
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 40246383
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
 
LVL 1

Author Comment

by:LB1234
ID: 40246769
Joseph can i put this all on the same line?  It's returning an error.
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
LVL 35

Expert Comment

by:Joseph Daly
ID: 40246833
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
 
LVL 1

Accepted Solution

by:
LB1234 earned 0 total points
ID: 40246844
Actually guys, i just found a util called FileFiller which did the job perfectly.  Thanks for the help.
0
 
LVL 1

Author Comment

by:LB1234
ID: 40246896
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
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 40246897
There were two other answers that solved this problem as well. I believe points should be split.
0
 
LVL 1

Author Comment

by:LB1234
ID: 40246915
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question