Hi Wang,

In Windows batch scripts you need to prepend calls to other batch
scripts (dsrun is actually dsrun.bat) with 'call'.

So each line would read:

call dsrun org.dspace.app.itemimport.ItemImport -a -e etc...

I hope that helps,


Stuart
_________________________________________________________________

Gwasanaethau Gwybodaeth                      Information Services
Prifysgol Aberystwyth                      Aberystwyth University

            E-bost / E-mail: [EMAIL PROTECTED]             
                 Ffon / Tel: (01970) 622860
_________________________________________________________________



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of wang
jiahui
Sent: 18 September 2007 15:38
To: dspace-tech
Subject: [Dspace-tech] problem with itemimport in .bat file

Hi,

I wrote a .bat file to import items to collection. It's just composed of
individual item-import commands like this:

dsrun org.dspace.app.itemimport.ItemImport -a -e
[EMAIL PROTECTED] -c 17 -s I:\aaa\dmcu_data\A000\ACF0 -m ACF0
dsrun org.dspace.app.itemimport.ItemImport -a -e
[EMAIL PROTECTED] -c 18 -s I:\aaa\dmcu_data\A000\ACG0 -m ACG0 
dsrun org.dspace.app.itemimport.ItemImport -a -e
[EMAIL PROTECTED] -c 19 -s I:\aaa\dmcu_data\A000\ACH0 -m ACH0
dsrun org.dspace.app.itemimport.ItemImport -a -e
[EMAIL PROTECTED] -c 20 -s I:\aaa\dmcu_data\A000\ACI0 -m ACI0

But it returned after the first command run, leaving all the others not
run.
I'm sorry not familliar with .bat files, and I tried to google this
problem but 
got no answer.

Is there anyone knows what's wrong with this?

Thanks

Wang Jiahui 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to