there is nothing inherent to STRPCCMD that has anything to do with
authority. STRPCCMD just instructs your PC to do something. You could
achieve your goal in a couple of different ways.

1. Set the authority on the IFS file correctly before using STRPCCMD. Set
the authorities either during creation or by using CHGAUT in your CL.
2. Instead of using a mapped drive, have STRPCCMD pull up an internet
browser and serve the spreadsheet via the browser. That way the user has
no way of saving back to the server.

<SHAMELESSPLUG>
If you would like to see how to accomplish option 2 using PHP, I
will be giving a web session on the topic at the RPG and Beyond Virtual
Conference http://rpgandbeyond.systeminetwork.com/ next week.
</SHAMELESSPLUG>

Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi



"Computer Century" <computercenturyinc@xxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
09/13/2010 09:12 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
<midrange-l@xxxxxxxxxxxx>
cc

Subject
Object Authority using STRPCCMD








Hi.

I need to control Object authority when I open documents using STRPCCMD
command
for example I need to open an excel Document with read only authority.
How can I control authority on a fly? is it possible?

here is my code:

STRPCCMD
PCCMD('\\10.1.1.1\Root\pdfitem\200\NJ000689\XLSFA001.XLS') PAUSE(*NO)

Thank you in advance.
Gary




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.