coursera-dl/coursera-dl

View on GitHub
coursera-dl.bat

Summary

Maintainability
Test Coverage
@echo off
rem Start-up script for Windows systems, ensuring out-of-the-box command execution as for *nix examples.
rem Make sure the containing folder is referenced in %PATH%

rem Usage: see "Running the script" section of the README for sample commands.

rem Run "coursera-dl" in the current folder as working directory (where "%~dp0" is the
rem location of this .bat file) via Python, passing all user-specified arguments ("%*")

rem Fixed the issue of spaces in the PATH name adding quotes before the batch Windows commands for drive and path. It should work fine now.
rem This issue was tested with pretty nasty path names (i.e. "t h i s i s t e r r i b l e") and it worked.
python "%~dp0\coursera-dl" %*