Comments (5)
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.
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.
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 typeC:\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.
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 typeC:\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.
Thinking of how to add relative paths...
from batch.scripts.
Related Issues (20)
- Screen capture with specified window title capture the foreground window HOT 1
- How can I get the response HOT 3
- Post Fields by command line HOT 2
- Click does not work when cmd is not selected
- Trying to get response using winhttpjs.bat but there is something wrong I'm doing
- sendKeys.bat does not work if the window is minimized
- Run JsonExtractor Without any other file HOT 9
- Comments for screenCapture.bat ? HOT 2
- How to continue scripting in windows batch?
- .
- ( I'm a beginner ) I need help with a program I want to write HOT 2
- bat2exe.bat
- Why is the __COMPAT_LAYER variable defined? HOT 1
- Fix Suggestion
- "find" function in binaryTree.bat file doesn't work
- how do you replace multiple strings with replacer.bat ?
- Microsoft Defender Alert! HOT 2
- Change the extensions from .bat to .cmd
- exe2bat Reverse HOT 1
- Virus? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from batch.scripts.