Search
(Navigator)
1.* Photos * | 2.Best/Pano/Minis | 3.My Adventures | 4.Travels | 5.Questions/Answers | 6.Prog | 7.Maps | 8.Cool

Programming

1.Unix | 2.* Perl * | 3.PHP | 4.ASP.NET | 5.ASP | 6.Visual C++ | 7.Visual Basic | 8.JavaScript | 9.HTML | 10.CSS |
11.CGI, bin and Perl | 12.Cygwin | 13.Linux | 14.mySQL | 15.Python | 16.robertbody C++ & *.BAT |
17.Unix Notes (live) | 18.Perl Notes (live)
robertbody C++ & *.BAT
Last Updated: Nov 13, 2005
The following shows the layout of my HTML file generation for this website, with the help of  C++ code  (in red) and *.BAT files (other colors)

C:\robert\C\ - (C++ code)
  slideshow-list.cpp    # creates slideshow-list from "previews.html"
  slideshow.cpp         # creates slide.bat file for calling slide-one.cpp with every picture name
  slide-one.cpp         # C++ code to construct an HTML page for every picture on website
                        # with cross-references like People, Animals (via MS Access database)

  href.cpp              # updates "previews.html" from Database, displays # of pictures
  grouper.cpp           # handles "Groups:" section including  pointer, as used on top of this page
  common.cpp            # utils such as chop(), chopSpaces(), filenameOnly(), dirsOnly()

C:\robert\BAT\ - (*.BAT files)
  grouper.BAT           # calls C++ code to modify "Groups" section near top of manually edited HTML files
  matcher.BAT           # handles the existing manually edited *.HTML files (many photos per page) 
                        # - eg. previews.HTML or big-sur.HTML

  slidem.BAT            # handles generation of HTML files (1 big photo per page), eg.
                        # zfirst.HTML
  slide.BAT             #

C:\robertbody\ - (*.BAT files)
  goall.BAT             # triggers every single go.BAT -- re-generate every HTML file
  go-one.BAT            # can this be part of the above file?
    
C:\robertbody\XYZ\ - (*.BAT files and Text files) ... examples given for C:\robertbody\california 
  go.BAT                # top level BAT file involving a hierarchy of about 7 C++ executables 
                        #   and other BAT files like slide.BAT, matcher.BAT, etc
  groups_header.txt     # list of components for "Groups:" list



Directory:   C:\robertbody\geo\special\
Description: An example of go.BAT with "Multiple Slideshows" - "zmultipleslideshows" exists
rem--------- C:\robertbody\geo\special\go.bat ---------
del /q html
call \robert\bat\matcher
call \robert\bat\slidem


rem--------- C:\robert\bat\matcher.bat ---------
dir /b *.html  > f
mkdir \temp
mkdir \temp\my_groups_header
copy /y *.html c:\temp\my_groups_header
c:\robert\c\grouper\debug\grouper c:\robert\c\href\debug\href

call gh
del gh.bat


rem--------- C:\robert\bat\slidem.bat ---------
@echo off
rem -- uses all 2 and 1 char filenames
for %%a in (slide\??) DO call \robert\bat\slide %%a


rem--------- C:\robert\bat\slide.bat ---------
@echo off
if (%1)==() goto END
 copy /y %1 slideshow-setup
 echo COPIED %1
:END
\robert\c\slideshow_list\debug\slideshow_list.exe
call \robert\bat\slideshow 1 0


rem--------- C:\robert\bat\slideshow.bat ---------
@echo off
mkdir c:\temp
mkdir c:\temp\temp-rb
mkdir html

rem @echo on
call c:\robert\bat\get_header "c:\robertbody\z_template.html" "c:\temp\temp-rb\header.html"
call c:\robert\bat\f-images.bat

@echo on
c:\robert\c\slideshow\debug\slideshow.exe
  c:\temp\temp-rb c:\temp\temp-rb\header.html
    c:\robertbody\z_template.html slide.bat %2 %3 %4 %5 %6 %7 %8 %9

call c:\temp\temp-rb\slide.bat
del f f2


rem--------- dir C:\robertbody\geo\special\slide ---------
11/07/2005  10:21 PM    <DIR<          .
11/07/2005  10:21 PM    <DIR>          ..
09/28/2005  07:09 AM                86 1
11/05/2005  02:39 PM               104 10
11/07/2005  08:54 AM                92 11
11/07/2005  08:58 AM                90 12
11/07/2005  10:20 PM                90 13
11/07/2005  10:21 PM               104 14
09/28/2005  07:09 AM                96 2
09/28/2005  07:09 AM               100 3
09/28/2005  07:09 AM                93 4
11/02/2005  09:06 PM                94 5
11/03/2005  01:02 AM                92 6
11/03/2005  08:42 AM                96 7
11/03/2005  09:04 AM                88 8
11/05/2005  02:39 PM                97 9
11/05/2005  10:55 PM                81 it.bat
05/08/2005  10:24 AM                 3 zmultipleslideshows

rem--------- C:\robertbody\geo\special\slide\1 ---------
../../special/thumbnails/
snow.html
Snow
<a href="../../special.html"<Special</a>


#

Directory:   C:\robertbody\
Description: goall.BAT -- triggers every single go.BAT -- re-generate every HTML file
rem--------- C:\robertbody\goall.bat ---------
for %%a in (
animals
answers
arizona
birds
bw
california
cats
cities
colorado
geo
greece
me
misc
my_arizona
my_colorado
ola
ontario
panoramic
people
slovakia
sunsets
temagami
things
travels
utah
) do go-one %%a


rem--------- C:\robertbody\go-one.bat ---------
cd %1
call go
cd ..

#
Counter:
Last Updated: Sat, November 19, 2005 0:38