{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/Virtualization-Documentation/issues/266","repository_url":"https://api.github.com/repos/Microsoft/Virtualization-Documentation","labels_url":"https://api.github.com/repos/Microsoft/Virtualization-Documentation/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Virtualization-Documentation/issues/266/comments","events_url":"https://api.github.com/repos/Microsoft/Virtualization-Documentation/issues/266/events","html_url":"https://github.com/Microsoft/Virtualization-Documentation/issues/266","id":155497664,"number":266,"title":"Cannot execute CMD [shell form] on path with spaces","user":{"login":"timotei","id":428492,"avatar_url":"https://avatars.githubusercontent.com/u/428492?v=3","gravatar_id":"","url":"https://api.github.com/users/timotei","html_url":"https://github.com/timotei","followers_url":"https://api.github.com/users/timotei/followers","following_url":"https://api.github.com/users/timotei/following{/other_user}","gists_url":"https://api.github.com/users/timotei/gists{/gist_id}","starred_url":"https://api.github.com/users/timotei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotei/subscriptions","organizations_url":"https://api.github.com/users/timotei/orgs","repos_url":"https://api.github.com/users/timotei/repos","events_url":"https://api.github.com/users/timotei/events{/privacy}","received_events_url":"https://api.github.com/users/timotei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-18T13:11:51Z","updated_at":"2016-05-18T17:43:20Z","closed_at":null,"body":"Hello,\r\n\r\nFirst of all, not sure this is the right place for this issue. Please move it in the proper place if that's the case.\r\n\r\nNow, my issue is about the CMD command, combined with a path with spaces. More specifically, I have this path: `C:\\Program Files\\Java\\jdk1.8.0_65\\bin\\java.exe`\r\n\r\nI can't find a way to use the SHELL form to execute the command, none of the below commands work:\r\n```\r\nCMD C:\\Program Files\\Java\\jdk1.8.0_65\\bin\\java.exe\r\nCMD C:/Program Files/Java/jdk1.8.0_65/bin/java.exe\r\nCMD \"C:\\Program Files\\Java\\jdk1.8.0_65\\bin\\java.exe\"\r\nCMD \"\"C:\\Program Files\\Java\\jdk1.8.0_65\\bin\\java.exe\"\"\r\n```\r\n\r\nThe last command, if executed as: `cmd /s /c \"\"CMD \"C:\\Program Files\\Java\\jdk1.8.0_65\\bin\\java.exe\"\"` works, but the docker-based invocation not: `The network path was not found.`\r\n\r\nHowever, the exec form works:\r\n\r\n```\r\nCMD [\"C:\\\\Program Files\\\\Java\\\\jdk1.8.0_65\\\\bin\\\\java.exe\", \"-version\"]\r\n```\r\n\r\nAm I missing something, or maybe it's a known issue?\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/Virtualization-Documentation/issues/comments/220103773","html_url":"https://github.com/Microsoft/Virtualization-Documentation/issues/266#issuecomment-220103773","issue_url":"https://api.github.com/repos/Microsoft/Virtualization-Documentation/issues/266","id":220103773,"user":{"login":"jhowardmsft","id":10522484,"avatar_url":"https://avatars.githubusercontent.com/u/10522484?v=3","gravatar_id":"","url":"https://api.github.com/users/jhowardmsft","html_url":"https://github.com/jhowardmsft","followers_url":"https://api.github.com/users/jhowardmsft/followers","following_url":"https://api.github.com/users/jhowardmsft/following{/other_user}","gists_url":"https://api.github.com/users/jhowardmsft/gists{/gist_id}","starred_url":"https://api.github.com/users/jhowardmsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhowardmsft/subscriptions","organizations_url":"https://api.github.com/users/jhowardmsft/orgs","repos_url":"https://api.github.com/users/jhowardmsft/repos","events_url":"https://api.github.com/users/jhowardmsft/events{/privacy}","received_events_url":"https://api.github.com/users/jhowardmsft/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T17:43:20Z","updated_at":"2016-05-18T17:43:20Z","body":"Not sure, but doubt it - will investigate when I get a chance."}}