Page 1 of 1

TextViewer with more than one file

Posted: April 9th, 2018, 1:06 pm
by AriSilva
I have a cspro application that generates 3 text files, and I want to see them using text viewer.
I use the execsystem function to call textviewer, but it is generating 3 different instances of the textviewer.
I would like to have a single instance of the textviewer, and use the left and right arrows to change files inside the textviewer, as it is done in a batch cspro file.
Is there a parameter to call the textviewer to do that?

Re: TextViewer with more than one file

Posted: April 11th, 2018, 9:09 am
by aaronw
List (without commas) all three files in the same execsystem.
execsystem(maketext('"%sTextView.exe" "C:\Survey\Helps.txt" "C:\Survey\Readme.txt" "C:\Survey\License.txt"',pathname(CSPro)),maximized,wait);

Re: TextViewer with more than one file

Posted: April 11th, 2018, 10:13 am
by AriSilva
Great!
Thanks
Ari