source: main/trunk/model-sites-dev/pei-jones/script/move-files.bat@ 31794

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
2REM #1 Go into greenstone3-svn/web/sites/localsite/collect/pjpaged/import/scanned-documents directory
3REM #2 Go into each subfolder in the "import" directory.
4REM #3 Obtain each image and its matching text file.
5REM #4 Generate a .item file
6REM #a. Write out a title
7REM #b. Write out the current number with an image file and matching text file (repeat till all files are written out).
8CHDIR "../import/Scanned-Documents"
9
10REM # Loop through each folder in "Scanned-Documents":.
11for /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
30PAUSE
Note: See TracBrowser for help on using the repository browser.