Discussion

Service Export Path

I want to move a file from one location in the server to Service export directory.  I have a java code to copy files but I need to het the service export full path like E:/pega/..../StaticContent/global/ServiceExport. please suggest how to perform this one.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

July 22, 2014 - 7:52am

Use the below Code

 

String sep = PRFile.separator;
String strOutputDirectory = tools.findPage("pxProcess").getString("pxServiceExportPath");
String strFullPath = strOutputDirectory + sep + tools.getParameterPage().getString("<filename>");

 

November 4, 2016 - 5:05pm

String   explicitTmpDir  = tools.getSystemSettings().getFSSetting("initialization/explicittempdir", "" , true, false);

String PathDir= explicitTmpDir +"/StaticContent/global/ServiceExport/"+<<file Name>>

check this link once:

https://pdn.pega.com/community/pega-product-support/question/finding-absolute-file-path