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
11,400
99
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
11,400
99
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
11,400
99
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
11,400
99
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,461
88
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
11,400
99
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.
 
Similar threads
Thread starter Title Forum Replies Date
C How to? starting TCC/TCMD v25 Support 2
samintz Starting Terminal from TakeCommand Support 3
vefatica Starting *.xlsm? Support 34
Steve Pitts _TCTAB when first starting Take Command Support 2
vefatica Starting Office apps Support 8
vefatica Starting Office 365 apps? Support 3
D WAD STARTing WUP apps Support 1
D Occasional TCMD 17 crash when starting additional TCC Support 4
D Folders pane display problem when starting Support 4
samintz Fixed DO /L with stringset starting with /n /e Support 2
C Fixed Starting editor from VIEW Support 9
M Starting Windows GUI programs from the command line... Support 10
ehab aboudaya WAD starting tcmd.exe with dir that has Boost C++ Libraries zip file delays Support 2
vefatica Starting shell objects Support 6
C starting TC/LE on the command line Support 1
C starting a shortcut from desktop Support 14
J starting in chosen directory Support 4
C starting tcmd with alternate INI file Support 15
F unexpected %1 while starting ide Support 6
T Starting a process blocks TCC window... Support 2
T Problem Starting Vim & gVIM Support 5
millardjk IDE dies without starting Support 4
S Starting TCC with double click on tab bar Support 0
C Add link to ewriter help to program group... Support 3
H Behavior change re piping a string to a Java program Support 1
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
MickeyF Why doesn't my python program get executed without specifying its path? Support 2
R How to? START program as top window? Support 2
M "less" program that works in TC 18 Support 12
MickeyF running program from script and (not) returning to script Support 12
C INSTALLED returnes same program multiple times Support 14
C Recommend a Print program Support 1
MickeyF running a program from cmdline versus in batch file Support 1
C tcmd.ini not loading from program dir? Support 5
Joe Caverly Determine if program started from command prompt Support 2
C WAD TCC: (Sys) C:\Program Files\JPSoft\TCMD17\tcc.exe is not a valid Win32 application. Support 6
C Win7 Program Data.... Support 2
M How to? Start a program on log on elevated abovenormal Support 5
MickeyF how to determine which program will execute a file Support 10
D New 64-bit install goes to Program Files x86 Support 3
M How is this program found? Support 9
A How to? Run a TCC command from external program Support 2
C "Program Files" .vs. "Program Files (x86)" Support 2
BobK "do you want to allow the following program to make changes to this computer" Support 3
M How to? Get the return code from an external program... Support 8
C start /wait /pgm "program name" ^ ketstack n/w Support 3
L File association: System cannot find the associated program Support 30
vefatica c:\program? Support 4
D Start program without waiting and redirect output Support 6
nikbackm Alias - launch external program - batch file Support 16

Similar threads