{"action":"created","issue":{"url":"https://api.github.com/repos/npocmaka/batch.scripts/issues/5","repository_url":"https://api.github.com/repos/npocmaka/batch.scripts","labels_url":"https://api.github.com/repos/npocmaka/batch.scripts/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/npocmaka/batch.scripts/issues/5/comments","events_url":"https://api.github.com/repos/npocmaka/batch.scripts/issues/5/events","html_url":"https://github.com/npocmaka/batch.scripts/issues/5","id":167815754,"number":5,"title":"impossible to use relative path for source with \"unzip\"-option","user":{"login":"TymurGubayev","id":348150,"avatar_url":"https://avatars.githubusercontent.com/u/348150?v=3","gravatar_id":"","url":"https://api.github.com/users/TymurGubayev","html_url":"https://github.com/TymurGubayev","followers_url":"https://api.github.com/users/TymurGubayev/followers","following_url":"https://api.github.com/users/TymurGubayev/following{/other_user}","gists_url":"https://api.github.com/users/TymurGubayev/gists{/gist_id}","starred_url":"https://api.github.com/users/TymurGubayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TymurGubayev/subscriptions","organizations_url":"https://api.github.com/users/TymurGubayev/orgs","repos_url":"https://api.github.com/users/TymurGubayev/repos","events_url":"https://api.github.com/users/TymurGubayev/events{/privacy}","received_events_url":"https://api.github.com/users/TymurGubayev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-27T09:55:55Z","updated_at":"2016-07-27T10:42:59Z","closed_at":null,"body":"`zipjs.bat unzip -source test.zip -destination testdir` gives an error: \"Either the target does not exist or is not a correct type\"\r\n\r\nThe reason is the check in line 551: `if(!Shell.Application.ExistsFolder(source) ){`\r\n\r\nI suggest replacing it with `if(!Scripting.FileSystemObject.ExistsItem(source) ){`"},"comment":{"url":"https://api.github.com/repos/npocmaka/batch.scripts/issues/comments/235550551","html_url":"https://github.com/npocmaka/batch.scripts/issues/5#issuecomment-235550551","issue_url":"https://api.github.com/repos/npocmaka/batch.scripts/issues/5","id":235550551,"user":{"login":"npocmaka","id":4533718,"avatar_url":"https://avatars.githubusercontent.com/u/4533718?v=3","gravatar_id":"","url":"https://api.github.com/users/npocmaka","html_url":"https://github.com/npocmaka","followers_url":"https://api.github.com/users/npocmaka/followers","following_url":"https://api.github.com/users/npocmaka/following{/other_user}","gists_url":"https://api.github.com/users/npocmaka/gists{/gist_id}","starred_url":"https://api.github.com/users/npocmaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npocmaka/subscriptions","organizations_url":"https://api.github.com/users/npocmaka/orgs","repos_url":"https://api.github.com/users/npocmaka/repos","events_url":"https://api.github.com/users/npocmaka/events{/privacy}","received_events_url":"https://api.github.com/users/npocmaka/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T10:42:59Z","updated_at":"2016-07-27T10:42:59Z","body":"You'll have to use full path to the zip.I think this is explained in the\nhelp message , though it still needs to be improved.In your case\n\n zipjs.bat unzip -source %cd%\\update.zip -destination\nc:\\tmp\\custom_zip\\test\\\n\nCould do the work.\nHope this helps.\nThe reason I didn't add relative to full path is because it cant be done so\neasy with paths inside the zip. Though maybe I'll need to improve this.At\nleast the errormessage.\n\n-best regards.\n\nOn Wed, Jul 27, 2016 at 1:34 PM, Vasil Arnaudov <npocmaka@gmail.com> wrote:\n\n> checking this...\n>\n> On Wed, Jul 27, 2016 at 1:22 PM, TymurGubayev <notifications@github.com>\n> wrote:\n>\n>> Sorry for the line number glitch, I must've made some change I forgot\n>> about (formatting I guess).\n>>\n>> Just tested it with files zipped via Explorer (Windows 10), this is how\n>> it looks like:\n>>\n>> `C:\\tmp\\custom_zip>zipjs.bat unzip -source update.zip -destination\n>> c:\\tmp\\custom_zip\\test\\\n>> Either the target does not exist or is not a correct type\n>>\n>> C:\\tmp\\custom_zip>zipjs.bat unzip -source c:\\tmp\\custom_zip\\update.zip\n>> -destination c:\\tmp\\custom_zip\\test\\\n>>\n>> C:\\tmp\\custom_zip>`\n>>\n>> —\n>> You are receiving this because you commented.\n>> Reply to this email directly, view it on GitHub\n>> <https://github.com/npocmaka/batch.scripts/issues/5#issuecomment-235546726>,\n>> or mute the thread\n>> <https://github.com/notifications/unsubscribe-auth/AEUt1pQ8RO0sIxn65oXUMuj8emrHybQ9ks5qZzFrgaJpZM4JWBmZ>\n>> .\n>>\n>\n>\n"}}
{"actor":{"display_login":"npocmaka"}}