SAMPLE


PURPOSE   OPERATION   OPTIONS   COMMAND_LINES   RELATED PROGRAMS


Author: Dan Mares, dmares @ maresware . com
Portions Copyright © 2019-2026 by Dan Mares, and Mares and Company, LLC
Phone: 678-427-3275
Last update: Feb. 14, 2026

This is a command line program.
MUST be run within a command window as administrator.
DO NOT attempt to run this from the RUN menu.

One liner:
sample: used to create/make a single file of know content which can be used for various testing of other software.
If you wish to make multiple test files in multiple directories run the mktemp.exe program.

GET sample.exe    

NOTE: This is a command line program. Should/Must be run as administrator.

top

Purpose

sample, is designed to create a single file of known content and size. This "sample" file can then be used as a file which can be passed to other software to test the operation of such software.


Top

Operation

sample will ask the user three questions and then create a number of directories and files based on the answers the user gives.

The first item the user enters is the name of the file to create.     sample.txt

The second item the user enters is the size of the file create.     10000

If the filesize entered is not divisible by 512, the user is asked if they wish the filesize to be increased or decreased to make a filesize up or down to 65536 or 64K which is divisible by 512 bytes.
This adjustment is so the user may create a file which generally will contain no file slack depencing on the cluster size set in the drive.
The User either enters size up, size down, or leave the size originally entered.

Then the user is asked if they wish the file to have all hex00s or what letter of the alphabet to populate the file with.

If the file is greater than 1 Meg, the user is asked if checkpoints should be included every million characters. This makes it easier for the user to find where they are when viewsing the file.


top

Options

There are no options for this program.
Top

Command Lines

C:>sample            runs the program
C>>sample -?       show a screen with possible user inputs


Related Programs

MKTEMP

Top