home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
prm2nsm.zip
/
convert.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-11-16
|
878b
|
30 lines
/* */
argsgood = 1
appenddata = 0
prmdir="."
netscapeFile="Infile"
if (Arg() <> 1) then
argsgood = 0
else do
prmdir = SUBWORD(arg(1), 1, 1)
netscapeFile = SUBWORD(arg(1), 2, 1)
if (SUBWORD(arg(1), 3, 1) == "-a") then
appenddata = 1
end
prmdir=prmdir||"\."
if argsgood <> 1 then do
Say "Usage: Convert <PRM directory with .POP files> <Netscape mail file> [-a]"
Say "Before running this program you need to create the appropriate folders"
Say "you are trying to convert in Netscape. You will overwrite the file"
Say "in Netscape under X:\Netscape\Users\yourname\Mail\INBOX.sbd\ with the"
Say "target Netscape mail file you specify."
Say "Use -a to append on to an existing Netscape mail file"
end
else do
if (appenddata == 0) then
"java Convert "||prmdir||" > "netscapeFile
else
"java Convert "||prmdir||" >> "netscapeFile
end