| 1234567891011121314151617181920212223242526272829303132333435363738 |
- @echo off
- echo Creating test directory structure...
- REM Create all directories first
- mkdir testdir 2>nul
- mkdir testdir\dir1 2>nul
- mkdir testdir\dir1\dir11 2>nul
- mkdir testdir\dir1\dir12 2>nul
- mkdir testdir\dir1\dir12\dir13 2>nul
- mkdir testdir\dir1\dir12\dir14 2>nul
- mkdir testdir\dir2 2>nul
- mkdir testdir\dir3 2>nul
- mkdir testdir\dir3\xxx1 2>nul
- mkdir testdir\dir3\xxx1\yyy1 2>nul
- mkdir testdir\dir3\xxx1\yyy2 2>nul
- mkdir testdir\dir3\xxx2 2>nul
- REM Create 0-byte files (only if they don't exist)
- if not exist testdir\file.dat echo. 2>testdir\file.dat
- if not exist testdir\dir1\dir12\file2.dat echo. 2>testdir\dir1\dir12\file2.dat
- if not exist testdir\dir1\dir12\dir14\ddd.dat echo. 2>testdir\dir1\dir12\dir14\ddd.dat
- if not exist testdir\dir3\xxx1\yyy2\file.dat echo. 2>testdir\dir3\xxx1\yyy2\file.dat
- REM Create 1024-byte files (only if they don't exist)
- if not exist testdir\dir1\aaa.dat fsutil file createnew testdir\dir1\aaa.dat 1024
- if not exist testdir\dir1\bbb.dat fsutil file createnew testdir\dir1\bbb.dat 1024
- if not exist testdir\dir1\dir11\ccc.dat fsutil file createnew testdir\dir1\dir11\ccc.dat 1024
- if not exist testdir\dir1\dir12\file.dat fsutil file createnew testdir\dir1\dir12\file.dat 1024
- if not exist testdir\dir3\file.dat fsutil file createnew testdir\dir3\file.dat 1024
- echo.
- echo Directory structure created successfully!
- echo.
- echo To verify the structure, run:
- echo tree testdir /f
- echo.
- echo To check file sizes, run:
- echo dir testdir /s
|