You need a script that creates a valid folder 1 and places 8 folders in it: the name must be random and one file, then it will also copy the file to each one, and four levels must be done this way. Here's an example of how it should work out (just a directory = randomly named)
Каталог1 Каталог index.html Каталог index.html Каталог index.html Каталог index.html Каталог Каталог Каталог Каталог Каталог Каталог Каталог index.html Now used:
` @Echo Off Set PassLenght=16 set var=0 set var1=4 SetLocal EnableDelayedExpansion EnableExtensions Set TotalChars=65 Set CharSet=QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm0123456789 :Loop Set /A Rnd=%TotalChars%*%Random%/32768 Set Pswd=!CharSet:~%Rnd%,1!%Pswd% Set /A PassLenght-=1 If %PassLenght% GTR 0 GoTo Loop mkdir %pswd% copy index.html %pswd% cd %pswd% set /a var=%var%+1 IF %var%==%var1% goto end goto loop :end pause ` and creates the following hierarchy:
│ └───Yg4JZGTPqnNgJ ----│---index.html ----│ ----└───CYg4JZGTPqnNgJ --------│---index.html --------│ --------└───5CYg4JZGTPqnNgJ ------------│---index.html ------------│ ------------└───w5CYg4JZGTPqnNgJ --------------------index.html Mandatory condition of each directory: you need to place the index.html file in each directory (There are four folders in each directory, another four, three third folders ...
Script on cmd OPTIONAL, you can on PowerShell
cmdis a prerequisite or, say,powershellis also OK? b) What version of Windows / DOS / FreeDOS? - Alex Yu