Closed thesalah1212 closed 6 years ago
This sounds like a question for StackOverflow... Alternatively, if you rephrase it as a feature request (i.e. "Adding support for decryption of all subfolders"), perhaps it could be relevant as an issue.
Hi thesalah1212,
I had the same problem as you. Using python I was able to run LyndaDecryptor on a bunch of folders at once. The script I made is too specific for my use case to share, but here is a simplified version:
import os
import subprocess
# Replace with your own paths
lyndaDecryptorPath = "C:/Path/To/LyndaDecryptor/Executable"
encryptedCourseDirectory = "C:/Path/To/Directory/Containing/Encrypted/Courses/"
database = "C:/Path/To/db.sqlite"
exportDirectory = "C:/Path/To/Export/Directory/"
# Loop through encrypted courses
courseList = os.listdir(encryptedCourseDirectory)
for course in courseList:
# Only run decryption on directories, not the database or other files
coursePath = os.path.join(encryptedCourseDirectory, course)
if os.path.isdir(coursePath):
# Construct and run LyndaDecryptor command
subprocess.call([lyndaDecryptorPath, "/D", coursePath, "/DB", database, "/OUT", exportDirectory])
Replace the paths at the top with your own and it should work.
One last problem: LyndaDecryptor waits for you to press a key after decryption is complete. In a batch decryption it annoyingly gets in the way, as you'd have to keep sitting at your computer to confirm the decryption of each course. I compiled a special version of LyndaDecryptor that skips the confirmation, see the link below.
I have solved this problem after 2 days check my post on https://stackoverflow.com/questions/50056295/run-command-on-multiple-subfolders-on-cmd
Hello , I have a lot of courses have downloaded and I want to run this command on all subfolders under ldc_dl_courses so how can I create a batch file to run it thank you LyndaDecryptor /D “C:\Users\salah\AppData\Local\lynda.com\Lynda.com Desktop App\offline\ldc_dl_courses\143455” /DB “C:\Users\salah\AppData\Local\lynda.com\Lynda.com Desktop App\db.sqlite” /OUT “C:\Users\salah\AppData\Local\lynda.com\Lynda.com Desktop App\offline\ldc_dl_courses\mp4”