OpenCBM GUI is a graphical user interface for the OpenCBM software, which allows users to interact with Commodore disk drives. This GUI is built using PowerShell and Windows Forms, providing an intuitive way to manage disk operations without using the command line.
- Detect connected Commodore disk drives.
- Initialize and reset drives.
- Display directory contents of the disk.
- Transfer files to and from the drive.
- Format disks with custom options.
- Support for various copy methods including
d64copy
,d82copy
,imgcopy
, andcbmcopy
.
- Windows operating system.
- OpenCBM installed in
C:\Program Files\opencbm
. - PowerShell.
-
Clone the repository:
git clone https://github.com/yourusername/opencbm-gui.git
-
Navigate to the project directory:
cd opencbm-gui
-
Adjust PowerShell execution policy (if not already set):
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Note: You may need to run PowerShell as an administrator to change the execution policy.
-
Run the PowerShell script:
.\opencbmGUI.ps1
-
Initialize Drive: Click the "Initialize Drive" button to reset the selected drive.
-
Detect Drive: Click the "Detect Drive" button to detect and select the connected drive automatically.
-
Display Directory: Click the "Dir" button to display the directory contents of the disk.
-
Transfer to Drive:
- Select the copy method from the dropdown.
- Click the "Transfer to Drive" button.
- Choose the file to transfer from your computer to the disk drive.
-
Transfer from Drive:
- Select the copy method from the dropdown.
- Click the "Transfer from Drive" button.
- Enter the filename on the Commodore drive.
- Choose the destination file on your computer to save the transferred file.
-
Test Drive: Click the "Test Drive" button to test the connection with the drive.
-
Format Disk:
- Enter the disk name and disk ID.
- Check the "Verify" and "Use cbmforng" options if needed.
- Click the "Format Disk" button to format the disk with the specified options.
To create an icon for the OpenCBM GUI application:
-
Create a shortcut for the PowerShell script:
- Right-click on the
opencbmGUI.ps1
file. - Select "Create shortcut".
- Right-click on the
-
Change the icon of the shortcut:
- Right-click on the created shortcut and select "Properties".
- Go to the "Shortcut" tab and click on "Change Icon...".
- Choose an icon file (
.ico
) from your computer or use a default one from Windows. - Click "OK" and then "Apply".
-
(Optional) Move the shortcut to a convenient location, like the Desktop or Start Menu.
Here are some example commands generated by the GUI:
-
Detect a connected drive:
"C:\Program Files\opencbm\cbmctrl" detect
-
Transfer a file to the drive using
d64copy
:"C:\Program Files\opencbm\d64copy" "path\to\file.d64" 8
-
Transfer a file from the drive using
cbmcopy
:"C:\Program Files\opencbm\cbmcopy" -r 8 cbmfile -o "path\to\file.bin"
Contributions are welcome! Please fork the repository and submit a pull request with your changes. Ensure your code follows the project's coding standards and includes appropriate tests.
This project is licensed under the MIT License. See the LICENSE file for details.
- OpenCBM for the backend software.
- The Commodore community for keeping the legacy alive.
OpenCBM GUI v0.1 by dotBtty