Fixed the problem of running coursera-dl.bat file using long paths with spaces in it. Now, after several tests it is working fine.

This commit is contained in:
Victor Westmann 2015-09-11 13:59:12 -03:00
parent c9b69664bf
commit c360a1295e

View file

@ -7,8 +7,6 @@ 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 This command does not work on Windows paths with spaces
rem python %~dp0\coursera-dl %*
rem Changed to this command. That does work with spaces in path. YAY! (Victor Westmann 2015-11-09 1:01 AM)
python coursera-dl %*
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" %*