Trying to setup a scripted on PowerShell (exoDOS)
Posted: Thu Jul 15, 2021 7:48 am
I never knew that there was such a thing of PowerShell on windows 7 as I was following this guide: viewtopic.php?t=1156
And I'm struck at step 3, I have to run the script but I get this error:
I have downloaded the latest exoDOS files, I noticed the directory is D: but the downloaded files are on the on (F:) Drive. Do I change this to this:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$workingdir = "F:\working"
$newdir = "F:\EXO2"
$filedir = "F:\EXODOS\EXO\EXODOS\Games"
$items = Get-ChildItem -Path $filedir
foreach($item in $items)
{
Expand-Archive -Path $item.FullName -DestinationPath $workingdir
$folder = Get-ChildItem $workingdir
Compress-Archive -Path "$($folder.FullName)\*" -DestinationPath "$newdir\$($item.name)" -Update
Remove-Item "$workingdir\*" -Recurse -Force
}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
And it seems to do something:
But what to i do from here?
I never used scripts in my life so my knowledge is limited
And I'm struck at step 3, I have to run the script but I get this error:
I have downloaded the latest exoDOS files, I noticed the directory is D: but the downloaded files are on the on (F:) Drive. Do I change this to this:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$workingdir = "F:\working"
$newdir = "F:\EXO2"
$filedir = "F:\EXODOS\EXO\EXODOS\Games"
$items = Get-ChildItem -Path $filedir
foreach($item in $items)
{
Expand-Archive -Path $item.FullName -DestinationPath $workingdir
$folder = Get-ChildItem $workingdir
Compress-Archive -Path "$($folder.FullName)\*" -DestinationPath "$newdir\$($item.name)" -Update
Remove-Item "$workingdir\*" -Recurse -Force
}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
And it seems to do something:
But what to i do from here?
I never used scripts in my life so my knowledge is limited