Is there a way to execute "Datastore.SaveAs(ls_filename, PDF!, false)" as a specific Windows user? I'm working on a process that involves a user hitting a button in a powerbuilder application which causes datawindow results to be saved off as PDFs at a network location. Another individual in my department would like to have the network location locked down so normal users can't access it for security reasons.
Is there a way that I can perform the "SaveAs" in Powerbuilder in a way that it can write to a location the user of the application wouldn't normally be able to write files? We're already going to make undiscoverable on the network if you don't know the file path.
For 1, would Powerbuilder be able to trigger an external executable to run with raised privileges (with Powerbuilder providing any needed credentials)? I've made use of "Run" within powerbuilder before, but I didn't know if there's syntax to set the run as user.
FWIW: Instead of an EXE, you can Run() either a Short-Cut or a batch command file that has the raised privileges already assigned. Food for thought. ;-)
Regards ... Chris