Windows 如何从批量导入中导入 zip 文件?

How to import zip file from batch importation in Windows?

我正在尝试通过在提示中批量导入 dspace 在 windows 中导入一个 zip 文件,但是 windows 无法识别来自文件的目录:

显然它输出了两倍的文件路径:我该如何解决这个问题?

C:\dspace5\bin>dspace import -a -e admin -c capes/218424 -s C:\Users\admins\Desktop\projects\community\migration\bitstreams -z SimpleArchiveFormat.zip -m mapfilesCOM

Using DSpace installation in: C:\dspace5
Destination collections:
Owning  Collection: materials
java.io.FileNotFoundException: C:\Users\admins\Desktop\projects\community\migration\bitstreams\C:\Users\admins\Desktop\projects\community\migration\bitstreams\SimpleArchiveFormat.zip (The syntax of the file name, directory name, or volume label is incorrect)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:2021)
        at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:1987)
        at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:2098)
        at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:490)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
java.io.FileNotFoundException: C:\Users\admins\Desktop\projects\community\migration\bitstreams\C:\Users\admins\Desktop\projects\community\migration\bitstreams\SimpleArchiveFormat.zip (The syntax of the file name, directory name, or volume label is incorrect)

Deleting temporary zip directory: /dspace5/imports
Started: 1512488260816
Ended: 1512488268886

Elapsed time: 8 secs (8070 msecs)

我认为您的问题是某些 DSpace 版本中的已知(已修复)错误:https://jira.duraspace.org/browse/DS-3585

您应该升级到更新的版本或重现问题和 DSpace Git 中描述的修复。

祝你好运!