home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
wvwar062.zip
/
wvWare.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-11-05
|
3KB
|
103 lines
/* AUTOcmd [0.0.8] for WVware */
/****************************/
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
parse arg curdir filename
/* (C) TEAM OS/2 Russia, http://teamos2.ru, mail@teamos2.ru */
/************************************************************/
/* SEEEEEEEEEEE wvWare.config for config ********************/
cfgname=curdir'\wvWare.config'
configdate=stream(cfgname,'c',query datetime)
do while lines(cfgname)
inli=linein(cfgname)
parse value inli with cfgvar"='"cfgvarvalue"'"
if (cfgvar\="")&(cfgvarvalue\="") then do
interpret cfgvar"='"cfgvarvalue"'"
end
end
/* and these lines are for me ;) */
if configured\='YES' then do;say'';say'';say'';say '
please CONFIGURE wvWare.config!
';'@pause >nul';exit;end
/*curdir=directory()*/
if outdir\=directory(outdir) then call SysMkDir outdir
call directory curdir
if filename='' then do; say 'Usage: wvWare filename.doc';exit;end
tempname=filename
diskname=substr(tempname,1,lastpos(':',tempname)-1)
tempname=substr(tempname,lastpos('\',tempname)+1)
dirname=substr(tempname,1,lastpos('.',tempname)-1)
extname=substr(tempname,lastpos('.',tempname)+1)
dirrname=outdir'\'dirname
say ''
say ''
say '
autoCMD adapted for wvWare
'
say ''
call SysMkDir dirrname
call directory dirrname
'@copy 'filename' 'dirrname'\'dirname'.'extname '>nul'
call charout STDOUT,'
converting....
'
'@'wvexedir'\wvware.exe '/* --config /usr/local/lib/wv/config.xml */' '/*--charset koi8-r*/' 'dirname'.'extname' >'dirname'.html 2>'dirname'.log'
say '
....done
'
say ''
say ''
say ''
say 'your
SOURCE
file has been dublicated in directory'
say '
'dirrname'
'
say '
LOG
file is'
say '
'dirrname'\'dirname'.log
'
say 'your
CONVERTED
files are in'
say '
'dirrname'
'
say 'your
CONVERTED INDEX
file is'
say '
'dirrname'\'dirname'.html
'
say ''
if launchNETSCAPE=='YES' then do
say 'launching NETscape in 3 seconds. press ctrl-c if you don`t this'
call syssleep 3
'start netscape.exe 'dirrname'\'dirname'.html'
end
else say 'if you want NETscape launches automatically please edit file wvWare.config'
say ''
say '
This window will close itself in 17 seconds '
say ' If you don`t this
MARK TEXT
in this window now or
press PAUSE button
'
say ''
/* ogho! nice joke ;) */
hoho.0=14
hoho.1='█'
hoho.2='█'
hoho.3='█'
hoho.4='█'
hoho.5=' '
hoho.6='O'
hoho.7='S'
hoho.8='/'
hoho.9='2'
hoho.10=' '
hoho.11='W'
hoho.12='a'
hoho.13='r'
hoho.14='p'
do i=1 to hoho.0
call charout STDOUT,hoho.i
call syssleep 1
end
call sysSleep 3