37 lines
1.5 KiB
PowerShell
37 lines
1.5 KiB
PowerShell
Write-Host "---Create Directories---"
|
|
New-Item -Path "C:\" -Name "sc" -ItemType "Directory"
|
|
if ( ?$ -neq True )
|
|
{
|
|
Write-Host "SC-DIR-ERR001: CANNOT CREATE NEEDED DIRECTORIES"
|
|
Write-Host "Creating the following directories has failed."
|
|
Write-Host "C:\sc"
|
|
Write-Host "Unable to continue. Please check that these locations are writable and that they do not already exist."
|
|
Start-Sleep -Seconds 60
|
|
Exit 1
|
|
}
|
|
|
|
else
|
|
{
|
|
#PSEUDO - Continue without writing function? TODO
|
|
}
|
|
New-Item -Path "C:\sc" -Name "tools" -ItemType "Directory"
|
|
if ( ?$ -neq True )
|
|
{
|
|
Write-Host "SC-DIR-ERR001: CANNOT CREATE NEEDED DIRECTORIES"
|
|
Write-Host "Creating the following directories has failed."
|
|
Write-Host "C:\sc\tools"
|
|
Write-Host "Unable to continue. Please check that these locations are writable and that they do not already exist."
|
|
Start-Sleep -Seconds 60
|
|
Exit 1
|
|
}
|
|
New-Item -Path "C:\sc" -Name "content" -ItemType "Directory"
|
|
if ( ?$ -neq True )
|
|
{
|
|
Write-Host "SC-DIR-ERR001: CANNOT CREATE NEEDED DIRECTORIES"
|
|
Write-Host "Creating the following directories has failed."
|
|
Write-Host "C:\sc\content"
|
|
Write-Host "Unable to continue. Please check that these locations are writable and that they do not already exist."
|
|
Start-Sleep -Seconds 60
|
|
Exit 1
|
|
}
|