Running Doc2Any as a scheduled task

This command fails when the scheduled task is set to "Run whether user is logged on or not"; I've spent hours trying to resolve it. I found your suggestion on using the CmdAsUser, but won't work as the password has a '%' sign and can't be changed right now (CmdAsUser can't seem to process the % in a batch file)

It's been a while since I installed this on my client's machine, the file date for doc2any.exe is 8/25/2011, file version is 2.3.0.1 - I was hoping there might be an update that helps work around this issue (running on Windows 2008 R2, Office 2010 is installed)

Test batch file, tried with useOffice 1 and 0

rem TEST
c:\ExtranetDocs\doc2any_cmd\doc2any.exe -log c:\ExtranetDocs\tempdocs\logs\4483003.DOCX.log -killoffice 1 -useoffice 1 c:\ExtranetDocs\tempdocs\4483003.DOCX c:\ExtranetDocs\tempdocs\4483003.PDF

Customer

------------------------------------------------------

>>CmdAsUser can't seem to process the % in a batch file

If you are using .bat file to do the batch conversion, you can use %% to instead of % in the .bat file.

If you just run CmdAsUser.exe from CMD window, you can use quotation marks to include the password, e.g.,

C:\doc2any\CmdAsUser.exe Administrator . /p "pass%word" C:\doc2any\doc2any.exe C:\test.doc C:\out.pdf

Another solution is set MS Word DCOM run inside Administrator user account to instead of default SYSTEM user account, please look at following web pages for more information,

https://www.verydoc.com/blog/failed-to-call-doc2any-exe-from-c-or-vb-net-source-code.html
https://www.verydoc.com/blog/how-to-call-doc2any-exe-from-asp-code.html
https://www.verydoc.com/others/configure-word-and-excel.htm
https://www.verydoc.com/blog/cannot-test-doc2any-on-net.html
https://www.verydoc.com/blog/doc2any-exe-very-slow-when-executed-from-php.html
https://www.verydoc.com/blog/failed-to-call-doc2any-exe-from-java-application-to-convert-pptx-and-docx-files-to-pdf-files.html
https://www.verydoc.com/blog/run-doc2any-on-windows-2003-or-windows-2008-system.html
https://www.verydoc.com/doc-to-any-shell.html

VeryDOC

--------------------------------------------------------------------

You need set MS Word DCOM run inside an interactive user account instead of default system user account, please look at following web pages for more information,

https://www.verydoc.com/blog/cannot-test-doc2any-on-net.html

Please arrange MS Word DCOM run from an interactive user account, please refer to following web page,

https://www.verydoc.com/doc-to-any-faq.html

"Your COM Name" should equal to "Microsoft Office Word 97 – 2003 Document" in your system, please give enough permission to "Microsoft Office Word 97 – 2003 Document" DCOM in your system to try again.

The following web pages will useful to you too,

https://www.verydoc.com/blog/how-to-call-doc-to-any-converter-sdk-from-asp-net-source-code.html

https://www.verydoc.com/blog/how-to-call-doc2any-exe-from-asp-code.html

http://www.verypdf.com/wordpress/201109/doc2any-sdk-dll-does-work-on-localhost-but-not-work-on-internet-2333.html

https://www.verydoc.com/doc-to-any-shell.html

https://www.verydoc.com/blog/run-doc2any-on-windows-2003-or-windows-2008-system.html

https://www.verydoc.com/blog/how-to-call-doc2any-from-php.html

We have also a VeryPDF Cloud API Platform, this is a Cloud Service to convert online office documents to PDF files, please look at following web pages for more information,

http://www.verypdf.com/online/cloud-api/user-guide.html
http://online.verypdf.com/api/

VeryPDF Cloud API Platform is a cloud service, all conversion will be done on our servers, you needn't install any software to your server in order to convert office documents to PDF files.

VeryDOC

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!