1

I want to use the Autotext templates from the command line. The location are this:

%APPDATA%\LibreOffice\4\user\autotext\mytexts.bau

C:\Program Files\LibreOffice\share\autotext\en-US\template.bau

C:\Program Files\LibreOffice\share\autotext\en-US\standard.bau

C:\Program Files\LibreOffice\share\autotext\en-US\crdbus50.bau

I'm trying to access that file without success. Any idea?

5
  • 2
    What do you mean by "use" them from the command line? Commented Sep 13, 2023 at 5:26
  • @RockPaperLz-MaskitorCasket access to the content for example of the "Lorem Ipsum" to use it in a Powershell script
    – ranemirusG
    Commented Sep 13, 2023 at 10:50
  • 1
    What error are you receiving? Commented Sep 13, 2023 at 12:42
  • What research have you done and what have you tried? Commented Sep 14, 2023 at 4:21
  • 1
    @RockPaperLz-MaskitorCasket no error at all I just don't even know what to try to read the content of that file
    – ranemirusG
    Commented Sep 18, 2023 at 20:04

1 Answer 1

1

These files are compressed archives that use standard ZIP compression algorithms.

First, decompress them using any ZIP decompression tool, such as 7-Zip or Peazip.

When you decompress the archives, the output will be readable.

From the command line, you can view the contents of any of the output files by using the command shell's integrated type command.

For example, to view the BlockList.xml that was extracted from the archive %APPDATA%\LibreOffice\4\user\autotext\mytexts.bau, use the command:

type %APPDATA%\LibreOffice\4\user\autotext\BlockList.xml

If you want the command shell to pause after each screenful of text, you can pipe through the more command, like this:

type %APPDATA%\LibreOffice\4\user\autotext\BlockList.xml | more

2
  • Great! Now... how did you know (or deduct) that it was a compressed file?
    – ranemirusG
    Commented Sep 19, 2023 at 18:02
  • 1
    @ranemirusG The first 4 bytes of the file (in hex) are 50 4B 03 04. This is one of the 3 possible signatures of a ZIP-compressed file. Commented Sep 20, 2023 at 6:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .