× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Gad,

You say that you are constructing a path for all documents for a customer such as \Customers\Cst0000001.  What are you doing with this path?  Just running STRPCCMD so that it opens Windows Explorer?  That wouldn't actually view the PDFs directly, and it would allow the user to navigate elsewhere, etc.

Or are you doing something else, like opening each file in that directory with a PDF viewer?  Can you explain how this works?

I assume you're wanting to do the same thing with 'just invoices' in your example.  If you're using Windows Explorer, you can't do that that I'm aware of.  If you can determine how to do it in Windows itself, you might be able to devise a way to make STRPCCMD initiate it..  but I don't think there's a way to do it in Windows to begin with.

If you write your own dialog to display the files, then you can do whatever you wish, of course.

If you're using a different tool, it's going to depend on the capabilities of the tool you're invoking.  That's the key thing to understand, this isn't really about STRPCCMD or the calling program... it's about the tool you're invoking and how it accepts input.  Once you've figured that part out, the STRPCCMD part is easy.

-SK


On 3/2/19 7:19 AM, Gad Miron wrote:
Hello sages

I could use a helping hand with this:

For some time now we store customer PDF documents on a network share
directories,
tree arranged by customer No. this way:
Customers (Directory of all customers)
Cst0000001 (sub directory of Customer No 1)
Ord00001.pdf (order No 1)
Ord00044.pdf
Inv00007.pdf (Invoice No 7)
Inv00023.pdf
.
.
Cst0000002 (sub directory of Customer No 2)
Ord000020.pdf
Ord00005.pdf
Inv00002.pdf
Inv000055.pdf

Cst0000003 (sub directory of Customer No 3)

etc..

When a (green screen) user wants to display a certain PDF doc (say order no
44)
We construct an appropriate path like \Customers\Cst0000001\Ord00044.pdf
and call STRPCCMD to open it on his/her PC.
We also let users see all documents in a customer directory by constructing
a suitable path (like \Customers\Cst0000001\ ).

Now,
Users are asking to display customer's invoices only (or orders only or any
other sub set).
but using wild-cards with STRPCCMD like in \Customers\Cst0000001\Inv*.pdf
does not produce anything (it hangs).

Does anyone here know how it can be done?

TIA
Gad


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.