OFC.EXE NOT WORKING

Real over this. I've followed what is instructed everywhere. I have permissions where I'm trying to run. Nothing happens. Get this:

C:\convert\Tools>ofc
Microsoft Office File Converter version 12.0.4518.1032
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

Automatically converts Office documents to 2007 Microsoft Office system file for
mat based on settings in the OFC.INI control file.

Converting files from folder "C:\Users\ITsupport\Desktop\Association"
Converting files from folder 1
Start:  2013-04-16 16:31:14
End:    2013-04-16 16:31:14
Total time used to convert files (sec): 0
Total number of files processed: 0
Total number of files converted: 0
Conversion Complete.

And No Logs?!?!? WHY NOT? INI File:

;Please refer to the online documentation for more information.

[Run]
; LogDestinationPath: the path where the log files will be written to
LogDestinationPath=C:\Users\ITsupport\Desktop\Converted\

; Description: this can be any text to describe extra information about the run
;Description= "Test run of the Office File Converter"

; FileListFolder: the folder containing the File List exported from the OMPM Reporting Tool
; (do not include if specifying FoldersToConvert)
;FileListFolder=dataexport\list1\

; TimeOut: a limit in seconds for the conversion of a single file. (default 300 seconds)
; If expired, the Office File Converter will cancel the conversion of the current file and move on to the next file.
; Conversion will never timeout if this value is set to 0.
; Set to a higher value if experiencing difficulties with larger files.
TimeOut = 300

[ConversionOptions]
; FullUpgradeOnOpen: if set to 1, Word documents will be fully converted to the OpenXML format
;                    if set to 0 (default), Word documents will be saved in the OpenXML format in compatibility mode
; Not applicable to Excel or PowerPoint files.
FullUpgradeOnOpen=1

; CABLogs: if set to 1 (default), XML log files will be compressed into CAB files
;          if set to 0, XML log files will be written separately
CABLogs=1

; MacroControl: if set to 1, VBA projects will not be included in converted files
;               if set to 0 (default), VBA projects will be maintained in the converted files
MacroControl=1

[FoldersToConvert]
; The Converter will attempt to convert all supported files in the specified folders
; (do not include if specifying FileListFolder)
;fldr=C:\Documents and Settings\Administrator\My Documents
fldr="C:\Users\ITsupport\Desktop\Association"
ConvertSubFolders=1

[ConversionInfo]
; Use SourcePathTemplate and DestinationPathTemplate to specify the destination folder structure.

; SourcePathTemplate: a sequence of *\ that determines how many directories from the source path will be captured.
; DestinationPathTemplate: path where converted files will be saved, possibly including captured folder names from the SourcePathTemplate
; The converted file will be saved at: DestinationPathTemplate + Remaining uncaptured source path
;
; For example:
;    Source files are contained in \\userfiles\[user name]\docs\
;    Desired output is to          \\newserver\docs\[user name]\
;
; The following settings would enable this example scenario:
;    SourcePathTemplate = *\*\*\*\
;    DestinationPathTemplate = \\newserver\*3\*2
; Explanation: The first three folder names are captured in order ("*X" designates which captured folder name to use):
;    *1 = userfiles
;    *2 = [user name]
;    *3 = docs
;  Here are some sample file source files and converted files for this example:
;    \\userfiles\Bob\docs\Personal\Rept1.doc         =>   \\newserver\docs\Bob\Personal\Rept1.docx
;    \\userfiles\James\docs\New Folder\Schedule.doc  =>   \\newserver\docs\James\New Folder\Schedule.docx
;    \\userfiles\Cliff\docs\notes.doc                =>   \\newserver\docs\Cliff\notes.docx
;
; Please refer to the online documentation for more information and examples.

SourcePathTemplate=*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\
DestinationPathTemplate=C:\Users\itsupport\desktop\converted
April 16th, 2013 6:33am

Even this doesnt work... Literally cant be more simple or "should work" than this.. Everythings right. that folder has .doc files in it.

The document says check the online documentation..

[Run]
LogDestinationPath=C:\users\itsupport\desktop\converted

TimeOut = 300

[ConversionOptions]
; FullUpgradeOnOpen: if set to 1, Word documents will be fully converted to the OpenXML format
;                    if set to 0 (default), Word documents will be saved in the OpenXML format in compatibility mode
; Not applicable to Excel or PowerPoint files.
FullUpgradeOnOpen=1

CABLogs=1

MacroControl=1

[FoldersToConvert]
fldr="C:\Users\ITsupport\Desktop\Association\"

[ConversionInfo]
SourcePathTemplate=*\*\*\*\*\*\*\*\*\
DestinationPathTemplate=C:\Users\ITsupport\Desktop\Converted

Free Windows Admin Tool Kit Click here and download it now
April 16th, 2013 6:45am

How about modify your fldr string from

fldr="C:\Users\ITsupport\Desktop\Association\"

to

fldr=C:\Users\ITsupport\Desktop\Association\

I have seen nowhere instruct us to use the double quotation marks (") to enclose the path.

======================================

For the log issue, let's read the online documentation Convert binary Office files by using the Office File Converter (OFC) and Version Extraction Tool (VET):

Location for the log file that is generated when the FileList setting is used. Required.

This setting does not generate log files that capture the text that is displayed in the Command Prompt window during conversion. Use the ">" command  (for example, ofc.exe > C:\Log.txt) to save any command shell output to a text file.

======================================

So, next time, would you please read the documentation carefully to findout what's wrong instead of shout abuse? And if you are unable to find out the problem by yourself, please also show your respect to the other people who might read your post when you post questions in such public forums.

April 17th, 2013 9:19am

I cannot get ofc.exe to work on windows server 2008, where I am calling it from a MVC. web application through Process.Start.

It has worked successfully on my local machine and I have also got it to work calling it through the command line on the server. I believe I have the correct permissions for the folders required.

I got the following error : Microsoft Office File Converter version 12.0.4518.1032
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

Automatically converts Office documents to 2007 Microsoft Office system file format based on settings in the OFC.INI control file.

Converting files from folder C:\Conversion\doc documents\
Converting: C:\Conversion\doc documents\Heald Green - Headed KD (3).doc Writing converted file to: C:\Conversion\docx documents\Heald Green - Headed KD (3).docx
Error: C:\Conversion\doc documents\Heald Green - Headed KD (3).doc failed to convert
Start:    2014-01-03 13:42:51
End:    2014-01-03 13:42:51
Total time used to convert files (sec): 0
Total number of files processed: 1
Total number of files converted: 0
Conversion Complete.

Does anyone know why this won't work on the server? I need some way or automating conversion of doc to docx on the fly.

Free Windows Admin Tool Kit Click here and download it now
January 3rd, 2014 4:45pm

Sarah

I am experiencing this same issue. ofc works great on 2003 server or my workstation but now just hangs

Did you find a solution?

Mark

July 14th, 2015 1:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics