Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 303e208

Browse files
Update DVDFab.ps1
Fixed DVDFab Mode
1 parent 905ce8c commit 303e208

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

DVDFab.ps1

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
#DVDFab AutoCloning Script
2-
#Installer, must be running as administrator to Install
1+
### DVDFab AutoCloning Script ###
2+
### Update 7/14/2021 ###
3+
### Requires DVDFab and a UHD Friendly Drive to Clone Blu ray Discs ###
4+
### ".\DVDFab.ps1 - Install" must be running as administrator to Install ###
5+
### Be Sure to Set the DVDFab Variables for your enviroment ###
6+
### $DVDFab is the location of your DVDFab executable ###
7+
### $Mode is the mode to run DVDFab in see https://www.dvdfab.cn/manual/introduction/command-line ###
8+
### $Dest is the Destination path for your copy/clone $DVD is your optical drive ###
9+
###
10+
###
311
Param(
412
#[Parameter(Mandatory=$false)]
513
[Switch]$Install
@@ -39,21 +47,26 @@ Return}
3947
While($true)
4048
{
4149
#Check CDDrive for Optical Disc
50+
### VARIABLES ###
51+
### BE Sure to Check these for your enviroment ###
52+
### These are required to work properly ###
4253
$Media= (Get-WMIObject -Class Win32_CDROMDrive -Property *).MediaLoaded
4354
#Set DVDFab Location
4455
$DVDFab= "C:\Program Files\DVDFab\DVDFab 12\DVDFab64.exe"
4556
#Set DVDFab Mode
4657
#Double Quotes required, DVDFab Commandline needs quotes https://www.dvdfab.cn/manual/introduction/command-line
47-
$Mode="`"BDCLONE`""
58+
$Mode="`"BDFULLDISC`""
4859
#Set Destination Folder
49-
$Dest="`"E:\Videos\Movies`""
60+
$Dest="`"E:\Videos\Movies\volume.iso`""
5061
#Set DVD Drive Letter
5162
$DVD= "`"D:\`""
5263
#Check If DVD is in Drive and start DVDFab Cloning, waiting for process to end
5364

5465
If ($Media -eq $true) {
5566
#Print That Drive is Ripping, Lauch DVDFab and Wait for DVDFab to close
5667
Write-Host 'Media is in Drive, Starting DVDFab Rip';
68+
## Close Staticly set, not a Variable as the process will not work automacitly if DVDFab is not ending it's process
69+
### It's also required to be able to run as a service, as we can no longer interact with applications running as a service
5770
Start-Process $DVDFab -Wait -ArgumentList ('/Mode',$Mode,'/SRC',$DVD,'/DEST',$Dest,'/CLOSE')
5871
Write-Host "Done Copying, Ejecting CD Tray if not already Ejected"
5972
#Ejecting requires administrative rights

0 commit comments

Comments
 (0)