JafSoft Support Forums  
  Products:
AscToHTM (text to HTML) / AscToPDF (text to PDF) / AscToRTF (text to RTF) / Detagger (HTML to text and markup removal) 

 
  Forum options:
Forum Index  Register  Login  Search  FAQ  Log Out
Member options:
My Profile  Inbox  Member List  Address Book  My Subscription  My Forums 
 
 

Note: Some forums require a login other than "Guest" in order to post messages and replies


Concatenation for the .bat file

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums > [Public forums (moderated)] > Ask JafSoft > Concatenation for the .bat file Page: [1]
Login
Message << Older Topic   Newer Topic >
Concatenation for the .bat file - 7/12/2007 6:48:21 AM   
Guest
Hi,

How can I concatenate files using the .bat file. The concatenation is available for the window mode but what about for the .bat file?

Thanks and more power,
Aries

< Message edited by Admin -- 7/19/2007 11:12:11 AM >
  Post #: 1
RE: Concatenation for the .bat file - 7/12/2007 8:24:25 AM   
Jaf

 

Posts: 70
Joined: 2/1/2006
Status: offline
You can do this by using the /concat switch on the command line, i.e.

  c:> h2acons *.html /concat


The console version supports a number of switches.  You can read a list in the documentation, but you can also get a list by using the help switch /? e.g.

  c> h2acons /?


gives the help messsage below which explains the usage of the command line options

C:\workdirs\h2acons\Debug>h2acons /?
This is the console vesion of Detagger 2.4.0.38

Usage : h2acons filespec1 filespec2 [policy_file.pol] [/qualifiers]

Recognised qualifiers include

 /CONCAT              Concatenate the results into one file
 /CONSOLE             Write output direct to console
 /DETAG               Selectively remove HTML markup
 /HELP                Display this useful list of commands ("/?" also works)
 /LOG[=filename]      Generate a .log file
 /OUTPUT[=filespec]   Filespec for output file(s)
 /OVERWRITE           May overwrite input files with the output
 /CREATE_POLICY[=filename]   Output policies used to a sample .pol file
 /SILENT              Suppress all output messages (except these :-)
 /SUBFOLDERS          Search sub-folders for files as well
 /TAGS                Generate debug tags in output
 /TREE                Output directory tree should match input tree

Qualifiers are case insensitive and may be reduced to shortest unique
name (e.g "/lo" for "/log")



< Message edited by Admin -- 7/19/2007 11:12:27 AM >

(in reply to Guest)
Post #: 2
RE: Concatenation for the .bat file - 7/12/2007 9:14:49 AM   
Jaf

 

Posts: 70
Joined: 2/1/2006
Status: offline
You can also use the policy

  Concatenate results into one file         : Yes


in your policy file.  You should take care not to use both the policy file
and the command line as the two could contradict each other.  From
memory I think the value in the command line dominates.

< Message edited by Admin -- 7/19/2007 11:12:45 AM >

(in reply to Jaf)
Post #: 3
Page:   [1]
All Forums > [Public forums (moderated)] > Ask JafSoft > Concatenation for the .bat file Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts