{"action":"created","issue":{"url":"https://api.github.com/repos/spress/Spress/issues/74","repository_url":"https://api.github.com/repos/spress/Spress","labels_url":"https://api.github.com/repos/spress/Spress/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/spress/Spress/issues/74/comments","events_url":"https://api.github.com/repos/spress/Spress/issues/74/events","html_url":"https://github.com/spress/Spress/issues/74","id":136023649,"number":74,"title":"\"Getting started\" for Windows:  `spress.cmd` error","user":{"login":"tajmone","id":11064292,"avatar_url":"https://avatars.githubusercontent.com/u/11064292?v=3","gravatar_id":"","url":"https://api.github.com/users/tajmone","html_url":"https://github.com/tajmone","followers_url":"https://api.github.com/users/tajmone/followers","following_url":"https://api.github.com/users/tajmone/following{/other_user}","gists_url":"https://api.github.com/users/tajmone/gists{/gist_id}","starred_url":"https://api.github.com/users/tajmone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tajmone/subscriptions","organizations_url":"https://api.github.com/users/tajmone/orgs","repos_url":"https://api.github.com/users/tajmone/repos","events_url":"https://api.github.com/users/tajmone/events{/privacy}","received_events_url":"https://api.github.com/users/tajmone/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T10:51:31Z","updated_at":"2016-02-24T19:26:12Z","closed_at":"2016-02-24T19:26:12Z","body":"In the \"Getting started\" page (http://spress.yosymfony.com/docs/getting-started/) it says:\r\n\r\n```\r\n5. Create a wrapping batch script (results in C:\\bin\\spress.cmd):\r\n\r\n      C:\\Users\\username> cd C:\\bin\r\n      C:\\bin> echo @php \"%~dp0spress.phar\" %* > spress.cmd\r\n      C:\\bin> exit\r\n```\r\nthe line `echo @php \"%~dp0spress.phar\" %* > spress.cmd` is wrong: it should have `%%*` instead of `%*`, otherwise the variable gets expanded (to an empty string) during echo and is omitted in the final `spress.cmd` file — which prevents the `spress` cmd from passing on additional parameters!\r\n\r\nAlso, for the same reasons, it would be best to add an `%` before `%~dp0spress.phar`, so that even the script path isn't expanded (to the script literal path) during echo, which would allow to create a  `spress.cmd` file that works even if moved around after creation.\r\n\r\nTherefore, the whole line should be changed to:\r\n\r\n```\r\nC:\\bin> echo @php \"%%~dp0spress.phar\" %%* > spress.cmd\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/spress/Spress/issues/comments/188417668","html_url":"https://github.com/spress/Spress/issues/74#issuecomment-188417668","issue_url":"https://api.github.com/repos/spress/Spress/issues/74","id":188417668,"user":{"login":"yosymfony","id":3321099,"avatar_url":"https://avatars.githubusercontent.com/u/3321099?v=3","gravatar_id":"","url":"https://api.github.com/users/yosymfony","html_url":"https://github.com/yosymfony","followers_url":"https://api.github.com/users/yosymfony/followers","following_url":"https://api.github.com/users/yosymfony/following{/other_user}","gists_url":"https://api.github.com/users/yosymfony/gists{/gist_id}","starred_url":"https://api.github.com/users/yosymfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosymfony/subscriptions","organizations_url":"https://api.github.com/users/yosymfony/orgs","repos_url":"https://api.github.com/users/yosymfony/repos","events_url":"https://api.github.com/users/yosymfony/events{/privacy}","received_events_url":"https://api.github.com/users/yosymfony/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T19:26:12Z","updated_at":"2016-02-24T19:26:12Z","body":"Thank you man. I don't use usually Window."}}