![]() |
|
Unable to create HDD emulation in Windows 11 - Printable Version +- Discussion Forum for all things Microbee (https://microbeetechnology.com.au/forum) +-- Forum: Microbee Forum (https://microbeetechnology.com.au/forum/forum-1.html) +--- Forum: Microbee Software and Documentation (https://microbeetechnology.com.au/forum/forum-7.html) +--- Thread: Unable to create HDD emulation in Windows 11 (/thread-936.html) Pages:
1
2
|
RE: Unable to create HDD emulation in Windows 11 - Graham72 - 22-09-2025 Thank you. I decided to bulk unarc all the mbug disks. So asked Grok for a powershell script. All good except it got the syntax back to front for the actual file extraction to subdirectories. (Grok may not be good at everything but sure can spit out code that works) GROK: Thanks for the clarification on the IZArc command-line syntax. Here's the adjusted PowerShell script to extract files from mbug001.arc to mbug186.arc in A:\mbee, using .\IZARCe.exe -d -p"$extractDir" $archiveFile:powershell _______________________________________________________________________________________________ # PowerShell script to extract files from mbug001.arc to mbug186.arc using IZArc command-line tool # Assumes IZARCe.exe is in the same directory as the script # Extracts each archive to a subfolder in A:\mbee (e.g., A:\mbee\mbug001\) # Set the source directory $sourceDir = "A:\mbee" # Loop from 1 to 186 for ($i = 1; $i -le 186; $i++) { $archiveNumber = "{0:D3}" -f $i # Format as 001, 002, ..., 186 $archiveFile = "mbug$archiveNumber.arc" $fullArchivePath = Join-Path -Path $sourceDir -ChildPath $archiveFile # Check if the archive file exists if (Test-Path -Path $fullArchivePath) { $extractDir = Join-Path -Path $sourceDir -ChildPath "mbug$archiveNumber" # Extract to subfolder # Create extract directory if it doesn't exist if (-not (Test-Path -Path $extractDir)) { New-Item -ItemType Directory -Path $extractDir | Out-Null } Write-Host "Extracting $archiveFile to $extractDir..." # Run IZArc command-line extraction & .\IZARCe.exe -d -p"$extractDir" "$fullArchivePath" if ($LASTEXITCODE -eq 0) { Write-Host "Successfully extracted $archiveFile" -ForegroundColor Green } else { Write-Host "Failed to extract $archiveFile (Exit code: $LASTEXITCODE)" -ForegroundColor Red } } else { Write-Host "Archive file $archiveFile not found in $sourceDir, skipping..." -ForegroundColor Yellow } } Write-Host "Extraction process completed for all files." Pause _____________________________________________________________________ Using powershell saved a lot of time compared to unpacking each arc file separately. RE: Unable to create HDD emulation in Windows 11 - Graham72 - 27-09-2025 I am increasingly impressed with terminal. Tonight I ran a script to find disks that contained beedat on them. Less than 1 minute from asking Grok to having 6 disks identified. I tried copilot but it failed. An interesting read: https://www.xda-developers.com/reasons-windows-terminal-profiles-better-old-school-shortcuts RE: Unable to create HDD emulation in Windows 11 - Graham72 - 10-10-2025 So I realised Windows 11 was choking when backing up all the MBUG extracted files, Microbee files, documentation and CP/M files: 10,000+ small files. Then I had a lightbulb moment all the extracted files are only read only until I need them, so I've created 4 .iso files that I can mount : BeeHive, CPM_Archive, Znode, and Walnut Creek. Windows 11 is happy again. Many of you probably know this, but it may be information of use to someone. oh yeah https://www.yubsoft.com/folder2iso/
|