Starting program for word to pdf conversion (difference cmd and tcc)

Apr 12, 2019
11
0
Hello!
I have the following simple line in order to convert doc to pdf:
"\\STZ-FR-DC1\Daten\BRIEFE\TOOLS\CL_Programs\TotalDocConverterX\DocConverterX64.exe" "\\STZ-FR-DC1\Daten\Briefe_Backup\ARIA_varianimg_files\141419.doc" "\\XAMPP-SRV\variandok\" -cDOCX

Interestingly it works with cmd but not with tcc. What could be the reason?

Thanks a lot!
 
May 20, 2008
10,573
78
Syracuse, NY, USA
If there was no message from TCC, it's a pretty good bet that TCC created a process with the given command line. In that case, I'd expect that it would work, or there would be a message from DocConverterX64.exe
 
May 20, 2008
10,573
78
Syracuse, NY, USA
Hello!
I have the following simple line in order to convert doc to pdf:
"\\STZ-FR-DC1\Daten\BRIEFE\TOOLS\CL_Programs\TotalDocConverterX\DocConverterX64.exe" "\\STZ-FR-DC1\Daten\Briefe_Backup\ARIA_varianimg_files\141419.doc" "\\XAMPP-SRV\variandok\" -cDOCX

Interestingly it works with cmd but not with tcc. What could be the reason?

Thanks a lot!
Is "-cDOCX" correct? That doesn't seem to be an option for TotalDocConverter. Did you mean "-cPDF"?

 
Apr 12, 2019
11
0
If there was no message from TCC, it's a pretty good bet that TCC created a process with the given command line. In that case, I'd expect that it would work, or there would be a message from DocConverterX64.exe
What does it mean 'created a process'? TCC showed no output although cmd does.
 
Apr 12, 2019
11
0
Is "-cDOCX" correct? That doesn't seem to be an option for TotalDocConverter. Did you mean "-cPDF"?

The cool utils are very versatile an also allow doc to docx conversion. Conversion to pdf with "-cPDF" shows the same problem.
 
May 20, 2008
10,573
78
Syracuse, NY, USA
What does it mean 'created a process'? TCC showed no output although cmd does.
Both TCC and CMD will (ultimately) use the Windows function "CreateProcess" to start DocConverterX64.exe which is its own process. Depending on how long it takes to convert the doc you may/may not be able to see that process in TaskManager. Neither TCC nor CMD typically produces output when they run another EXE. I suspect that any output is from DocConverterX64.exe. What happens if you just give the following commanf to CMD and TCC?

Code:
"\\STZ-FR-DC1\Daten\BRIEFE\TOOLS\CL_Programs\TotalDocConverterX\DocConverterX64.exe"
Have you tried it ...

1. without "quotes"
2. from Powershell
3. from the Start\Run dialog (WinKey+R)?
 
Apr 12, 2019
11
0
Both TCC and CMD will (ultimately) use the Windows function "CreateProcess" to start DocConverterX64.exe which is its own process. Depending on how long it takes to convert the doc you may/may not be able to see that process in TaskManager. Neither TCC nor CMD typically produces output when they run another EXE. I suspect that any output is from DocConverterX64.exe. What happens if you just give the following commanf to CMD and TCC?

Code:
"\\STZ-FR-DC1\Daten\BRIEFE\TOOLS\CL_Programs\TotalDocConverterX\DocConverterX64.exe"
Have you tried it ...

1. without "quotes"
2. from Powershell
3. from the Start\Run dialog (WinKey+R)?
Hi, I tried this:
1. no difference
2. it is on the server ... Powershell seems not work
3. Start/Run works good like CMD
 
Apr 12, 2019
11
0
Just as an experiment, I suggest mapping a drive letter to \\STZ-FR-DC1\Daten, and retrying your command using the drive letter instead of the UNC path.
Bingo!!! The ".exe"-File is'nt allowed here to be given as UNC Path :-(( ... if the file itself is given as UNC path it works but not the ".exe"-File.

Unfortunately I did it intentionally WITH UNC to avoid any problems by changing the server.

Is this difference known for TCC?
 
May 20, 2008
10,573
78
Syracuse, NY, USA
TCC is perfectly capable of starting an EXE specified by a UNC path. I have been doing it for many years. In the example below, "bb" is a remote machine.
Code:
v:\> "\\bb\g$\Gnu\grep.exe" repeat "\\bb\v$\colors.btm"
                        echo ^e[%@eval[%i+%j];%@eval[%i+%j+10]m%@repeat[ ,108]^e[0m

v:\>
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,202
72
Albuquerque, NM
prospero.unm.edu
Bingo!!! The ".exe"-File is'nt allowed here to be given as UNC Path :-(( ... if the file itself is given as UNC path it works but not the ".exe"-File.
I'm guessing here; I am not familiar with the program in question. But some programs don't expect to be started from a UNC path. CMD.EXE may be mapping a temporary drive letter before starting the program.

Or I could be completely wrong. Like I said, I'm just guessing.
 
May 20, 2008
10,573
78
Syracuse, NY, USA
I installed it and with TCC and a command line much like weissenb's ("\\remote\...\the.exe" "\\remote\...\file.docx" "\\remote\folder" -cpdf) successfully converted a DOCX to PDF. I installed on Win10\64 and got an x86 executable named DocConverter.exe (don't know about DocConverterX64.exe). It's a GUI app. When called from a command line (as above) it doesn't show its full-blown UI but it does show a temporary GUI progress indicator.