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


How do I use a policy file with the console version?

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums > [Hints and Tips] > Frequently Asked Questions > How do I use a policy file with the console version? Page: [1]
Login
Message << Older Topic   Newer Topic >
How do I use a policy file with the console version? - 4/9/2006 3:15:47 PM   
Jaf

 

Posts: 70
Joined: 2/1/2006
Status: offline
Most JafSoft converters also come as console applications, for example h2acons is the console version of Detagger.  When doing this you'll want to pass the console program the same policy file as you used in the Windows version, so as to get the same results.

Unfortunately the existence of the /policy switch amongst the command line options confuses some people (understandably), leading to people trying a command of the sort

      c:> h2acons *.HTML /policy=my_options.pol


but this is incorrect.  It's is a common misunderstanding.  The /policy switch is to *create* a policy file documenting options that have been set.  This is less useful with Detagger than with some of my other utilities where there are a lot of analysis options.

To supply a policy file, all you need do is add the filename to the command line. e.g.

       c:> h2acons *.HTML my_options.pol


As long as the file has a .pol extension it will be recognised as being the policy file.  You may need to supply a full path name for the policy file if it's in a different folder.  If this path includes spaces, you'll need to put the whole name in double quotes

Because of the confusion the /policy qualifier has caused in the past, it may be removed or renamed in future releases

Post #: 1
Page:   [1]
All Forums > [Hints and Tips] > Frequently Asked Questions > How do I use a policy file with the console version? 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