Skip to content

Commit

Permalink
Fixed the problem of running coursera-dl.bat file using long paths wi…
Browse files Browse the repository at this point in the history
…th spaces in it. Now, after several tests it is working fine.
  • Loading branch information
victorwestmann committed Sep 11, 2015
1 parent c9b6966 commit c360a12
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions coursera-dl.bat
Expand Up @@ -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" %*

0 comments on commit c360a12

Please sign in to comment.