# ── Variables de configuration ──
$desktop = [Environment]::GetFolderPath("Desktop")
$root = "$desktop\Study Folder"
$nbSubjects = 3 # Nombre de sujets
$nbSessions = 2 # Sessions par sujet
# ── Créer le dossier racine ──
New-Item -ItemType Directory -Path $root -Force
# ── Boucle pour chaque Subject ──
for ($i = 1; $i -le $nbSubjects; $i++) {
$subPath = "$root\Subject $i"
New-Item -ItemType Directory -Path $subPath -Force
# ── Sessions ──
for ($j = 1; $j -le $nbSessions; $j++) {
$sesPath = "$subPath\Session $j"
New-Item -ItemType Directory -Path $sesPath -Force
New-Item -Path "$sesPath\Physiological data.txt" -Force
New-Item -Path "$sesPath\Videos.txt" -Force
New-Item -Path "$sesPath\Audios.txt" -Force
}
# ── Biographic data ──
New-Item -Path "$subPath\Biographic data.txt" -Force
# ── Psychometric data ──
$psychoPath = "$subPath\Psychometric data"
New-Item -ItemType Directory -Path $psychoPath -Force
New-Item -Path "$psychoPath\Annotation file.txt" -Force
New-Item -Path "$psychoPath\session-level psychometric data.txt" -Force
}
Write-Host "✅ Arborescence créée !" -ForegroundColor Green