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

Commit 3530b93

Browse files
Update to get Optical Drive Volume Label
Gets Optical Drive Volume label and sets as the iso file name
1 parent 303e208 commit 3530b93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

DVDFab.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ $DVDFab= "C:\Program Files\DVDFab\DVDFab 12\DVDFab64.exe"
5656
#Set DVDFab Mode
5757
#Double Quotes required, DVDFab Commandline needs quotes https://www.dvdfab.cn/manual/introduction/command-line
5858
$Mode="`"BDFULLDISC`""
59-
#Set Destination Folder
60-
$Dest="`"E:\Videos\Movies\volume.iso`""
6159
#Set DVD Drive Letter
6260
$DVD= "`"D:\`""
61+
#Get DVD Label Name for ISO File Name, Set Optical Drive Letter
62+
$DVDLabel= Get-Volume -DriveLetter D| % FileSystemLabel
63+
#Set Destination Folder
64+
$Dest="`"E:\Videos\Movies\$DVDLabel.iso`""
6365
#Check If DVD is in Drive and start DVDFab Cloning, waiting for process to end
6466

6567
If ($Media -eq $true) {

0 commit comments

Comments
 (0)