Libraryless. Click here for Pure Java version (15149L/110K).
!7 module BurnDVD { S directory, tempISOFile, dvdDrive; bool add; start { if (empty(tempISOFile)) setField(tempISOFile := f2s(javaxCaches("temp.iso")); if (empty(dvdDrive)) setField(dvdDrive := "/dev/dvd"); } visualize { ret makeForm3( "Directory:", dm_fieldTextField('directory), "Temp ISO file:", dm_fieldTextField('tempISOFile), "DVD drive:", dm_fieldTextField('dvdDrive), "", dm_fieldCheckBox("Add to DVD if there is data on it", 'add), "", jbutton("Step 1 (Make ISO)", rThread step1), "", jbutton("Step 2 (Burn to DVD)", rThread step2)); } void step1 enter { assertLinux(); assertNempty(directory); assertAbsolutePath(directory); backtickToConsole("mkisofs -r -o " + bashQuote2(tempISOFile) + " " + bashQuote2(addSlash(directory) + "*")); infoBox("ISO made! " + fileInfo(tempISOFile)); } void step2 enter { assertLinux(); if (!fileExists(tempISOFile)) ret with infoBox("ISO doesn't exist: " + tempISOFile); if (contains(loadTextFile(backtickToConsole("growisofs " + (add ? "-M" : "-Z") + " " + bashQuote2("/dev/dvd=" + tempISOFile))), "FATAL")) infoBox("Error!"); else infoBox("DVD made!"); } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020282 |
Snippet name: | Linux: Burn Directory To DVD (old version using temp ISO) |
Eternal ID of this version: | #1020282/9 |
Text MD5: | 695967d761a6db17536f84f2155dbcc6 |
Transpilation MD5: | c90fd64243bf5d54b40cd37333bde319 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-12 16:31:11 |
Source code size: | 1279 bytes / 40 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 349 / 517 |
Version history: | 8 change(s) |
Referenced in: | #1020285 - Linux: Burn Directory To DVD (new direct version) |