MKTEMP


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:
MKTEMP: used to create/make a number of files in multiple subdirectories for sample and testing purposes.
If you wish to make a single test file, run the sample.exe program.

GET mktemp.exe    

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

top

Purpose

MKTEMP, in its basic operation is designed to create a specific number of sub-directories which contain a specific number of files each of a specified filesize and content.


Top

Operation

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

The first question the user is asked is: How many sub-directories to make. The user then enters a number, and the program will make that many subdirectories in the tree.

The (second) next question is how many files in each subdirectory? The user inputs the number of file they wish to be created in each subdiretory.

Finally, with the third question, the user is provided a list of file sizes to create. The file size choices are mulitples of 512 bytes. These are the choices given
1=512, 2=1024, 3=2048, 4=4096, 5=8192, 6=16384, 7=32768

The user input the number 1 thru 7 and the program creates X sub-directories with Y number of files in each sub-directory of Z file size.

Each file will contain differenct fixed content. I leave it to the user to run hexdump on the file to determine how each file is formatted.


top

Options

There are no options for this program.
Top

Command Lines

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


Related Programs

SAMPLE

Top