Howto: Create a File of whatever size you want in Windows

You can create a file of any size using nothing more than what’s supplied with Windows.

There comes a time in every developers life where they need a data file for testing purposes and there are none handy. Rather than searching around for a file that fits your needs, the easiest thing to do is simply to generate one. There are a number of reasons why you might want to generate a data file. For example, recently we needed to test the file upload functionality of a little application we were writing at work, using a whole range of files of different sizes (from <1Mb up to >100Mb).

Rather than hunt around for files that would fit the bill, it was a lot easier to just generate some. Another reason might be when you need to test some functionality (e.g. algorithm) to see how it would handle very large sets of data. Since you normally don’t have files that are 1Gb or more in size just lying around, generating some is probably a good way to go.

Start by converting the desired file size into hexadecimal notation. You can use the Windows Calculator in Scientific mode do to this. Suppose you want a file of 1 million bytes. Enter 1000000 in the calculator and click on the Hex option to convert it (1 million in hex is F4240.) Pad the result with zeroes at the left until the file size reaches eight digits—000F4240.

  • Now open a command prompt window. In Windows 95, 98, or Me, you can do this by entering COMMAND in the Start menu’s Run dialog; in Windows NT 4.0, 2000, or XP/Windows7 enter CMD instead.
  • Enter the command DEBUG BIGFILE.DAT and ignore the File not found message.
  • Type RCX and press Enter. Debug will display a colon prompt. Enter the last four digits of the hexadecimal number you calculated (4240, in our example).

cmd-commands-large-size

  • Type RBX and press Enter, then enter the first four digits of the hexadecimal size (000F, in our example).
  • Enter W for Write and Q for Quit. You’ve just created a 1-million-byte file using Debug. Of course you can create a file of any desired size using the same technique.

cmd-commands-large-size-dir

 

In the above screenshot you can see “BIGFILE.DAT” with size of 1,000,000 bytes.

cmd-commands-large-size-explorer

 

This is the screenshot from explorer. Now you can create file of whatever size you want according to needs.

Microsoft Office 2010

Office 2010 nixes the pearl in favor of the File tab and introduces a “Backstage” view that puts all the standard File menu functions and more on a spacious menu, complete with print preview. I spend a lot of time printing, managing, and sharing documents, and the new Backstage view makes me wonder how I managed without it for so many years.

Microsoft Office 2010  is the current iteration of the Microsoft Office productivity suite for Microsoft Windows, and the successor to Microsoft Office 2007. Office 2010 includes extended file format support, user interface updates, and a changed user experience. A 64-bit version of Office 2010 is available, although not for Windows XP or Windows Server 2003.

microsoft-office2010

On April 15, 2010, Office 2010 was released to manufacturing. The suite became available for retail and online purchase on June 15, 2010. Office 2010 is the first version to require product activation for volume license editions.

Office 2010 marks the debut of free online versions of Word, Excel, PowerPoint, and OneNote, which work in the web browsers Internet Explorer, Firefox, Chrome and Safari, but not Opera. Office Starter 2010, a new edition of Office, replaced the low-end home productivity software, Microsoft Works.

Microsoft’s update to its mobile productivity suite, Office Mobile 2010, will also be released for Windows Phones running Windows Mobile 6.5 and Windows Phone 7. In Office 2010, every application features the ribbon, including Outlook, OneNote, Publisher, InfoPath, SharePoint Workspace (previously known as Groove), and the new Office Web Apps.

As of December 31, 2011, almost 200 million licenses of Office 2010 have been sold.

Office 2010 will be the last version of Microsoft Office with support for Windows XP, Windows Server 2003 and Windows Vista due to the upcoming Office 2013 requiring Windows 7, Windows 8 and Windows RT.

Office 2010 is a dazzlingly attractive upgrade, but probably essential only for enterprise customers who need the new collaboration features.

Official link : http://office.microsoft.com/en-us/products/