Last change
on this file since 31794 was 31794, checked in by kjdon, 7 years ago |
more files
|
-
Property svn:executable
set to
*
|
File size:
807 bytes
|
Line | |
---|
1 | @ECHO OFF
|
---|
2 | REM #1 Go into greenstone3-svn/web/sites/localsite/collect/pjpaged/import/scanned-documents directory
|
---|
3 | REM #2 Go into each subfolder in the "import" directory.
|
---|
4 | REM #3 Obtain each image and its matching text file.
|
---|
5 | REM #4 Generate a .item file
|
---|
6 | REM #a. Write out a title
|
---|
7 | REM #b. Write out the current number with an image file and matching text file (repeat till all files are written out).
|
---|
8 | CHDIR "../import/Scanned-Documents"
|
---|
9 |
|
---|
10 | REM # Loop through each folder in "Scanned-Documents":.
|
---|
11 | for /D /r %%G in (.) DO (
|
---|
12 |
|
---|
13 | set currFolderName=%%~nG
|
---|
14 | echo. Current Folder Name: %currFolderName%
|
---|
15 | REM ECHO *** Found folder: %%G
|
---|
16 |
|
---|
17 | REM # Change into the current folder
|
---|
18 | REM CHDIR %%G
|
---|
19 |
|
---|
20 | REM SET item_file_name=
|
---|
21 |
|
---|
22 | REM Create the .item file
|
---|
23 | REM echo. 2>EmptyFile.item
|
---|
24 |
|
---|
25 |
|
---|
26 |
|
---|
27 |
|
---|
28 | )
|
---|
29 |
|
---|
30 | PAUSE |
---|
Note:
See
TracBrowser
for help on using the repository browser.