Giter Club home page Giter Club logo

Comments (5)

npocmaka avatar npocmaka commented on August 27, 2024

Are you sure you are using the latest version of the script?At the moment
the cited line is on line 549.
Though the idea is that Shell.Application.ExistsFolde uses S
hell.Application.NameSpace method which can be used to validate both
folders and .zip (and .cab) files (this is the function that windows
explorer uses to deal with zip files).

Are you sure your zip file is valid ? Can it be open with windows explorer?

-best regards.

On Wed, Jul 27, 2016 at 12:55 PM, TymurGubayev [email protected]
wrote:

zipjs.bat unzip -source test.zip -destination testdir gives an error:
"Either the target does not exist or is not a correct type"

The reason is the check in line 551: if(!Shell.Application.ExistsFolder(source)
){

I suggest replacing it with if(!Scripting.FileSystemObject.ExistsItem(source)
){


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#5, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEUt1nhWNnNBC0w-LpA0ggnUw9TocibSks5qZysrgaJpZM4JWBmZ
.

from batch.scripts.

TymurGubayev avatar TymurGubayev commented on August 27, 2024

Sorry for the line number glitch, I must've made some change I forgot about (formatting I guess).

Just tested it with files zipped via Explorer (Windows 10), this is how it looks like:

C:\tmp\custom_zip>zipjs.bat unzip -source update.zip -destination c:\tmp\custom_zip\test\
Either the target does not exist or is not a correct type

C:\tmp\custom_zip>zipjs.bat unzip -source c:\tmp\custom_zip\update.zip -destination c:\tmp\custom_zip\test\

C:\tmp\custom_zip>

from batch.scripts.

npocmaka avatar npocmaka commented on August 27, 2024

checking this...

On Wed, Jul 27, 2016 at 1:22 PM, TymurGubayev [email protected]
wrote:

Sorry for the line number glitch, I must've made some change I forgot
about (formatting I guess).

Just tested it with files zipped via Explorer (Windows 10), this is how it
looks like:

`C:\tmp\custom_zip>zipjs.bat unzip -source update.zip -destination
c:\tmp\custom_zip\test
Either the target does not exist or is not a correct type

C:\tmp\custom_zip>zipjs.bat unzip -source c:\tmp\custom_zip\update.zip
-destination c:\tmp\custom_zip\test\

C:\tmp\custom_zip>`


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#5 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEUt1pQ8RO0sIxn65oXUMuj8emrHybQ9ks5qZzFrgaJpZM4JWBmZ
.

from batch.scripts.

npocmaka avatar npocmaka commented on August 27, 2024

You'll have to use full path to the zip.I think this is explained in the
help message , though it still needs to be improved.In your case

zipjs.bat unzip -source %cd%\update.zip -destination
c:\tmp\custom_zip\test\

Could do the work.
Hope this helps.
The reason I didn't add relative to full path is because it cant be done so
easy with paths inside the zip. Though maybe I'll need to improve this.At
least the errormessage.

-best regards.

On Wed, Jul 27, 2016 at 1:34 PM, Vasil Arnaudov [email protected] wrote:

checking this...

On Wed, Jul 27, 2016 at 1:22 PM, TymurGubayev [email protected]
wrote:

Sorry for the line number glitch, I must've made some change I forgot
about (formatting I guess).

Just tested it with files zipped via Explorer (Windows 10), this is how
it looks like:

`C:\tmp\custom_zip>zipjs.bat unzip -source update.zip -destination
c:\tmp\custom_zip\test
Either the target does not exist or is not a correct type

C:\tmp\custom_zip>zipjs.bat unzip -source c:\tmp\custom_zip\update.zip
-destination c:\tmp\custom_zip\test\

C:\tmp\custom_zip>`


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#5 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEUt1pQ8RO0sIxn65oXUMuj8emrHybQ9ks5qZzFrgaJpZM4JWBmZ
.

from batch.scripts.

npocmaka avatar npocmaka commented on August 27, 2024

Thinking of how to add relative paths...

from batch.scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.