Webutil.client_host relative path

Hi, I'm upgrading an old 6i client application. There are some calls to host commands that contain relative paths.
..\import\start.batFrom 10G using client_host these files are not found. Probably the paths are not relative to the location of the fmx file?
Edited by: Rene W. on Jan 29, 2009 1:07 AM
Solved, should have left "host' instead of client_host in this particular instance.

Hi, yes I realized that after posting my question. We start a couple of conversion tools before loading data into the database. Advantage of the webforms is that files can be uploaded to the AS and conversion can run from there. No need to have the conversion tools on all the clients anymore.

Similar Messages

  • Webutil client_host

    I'm using webutil(client_host).
    e.g.
    CLIENT_HOST( 'CMD.EXE /C START '||NAME_IN( 'block_name.item_name' ) );
    The value acquired using CLIENT_GET_FILE_NAME goes into 'block_name.item_name'.
    In 'C:\Documents and Settings' e.g. becomes an error when a folder with a blank is specified.
    If there is the solution method, please let me know.

    Hi Duncan.
    If so, you just need to alter your command
    a little to enclose the path in quotes. e.g)Unfortunately It may not work. START will think that the parameter is a title of a window, not a command.
    C:>START /?
    Starts a separate window to run a specified program or command.
    START ["title"] [Dpath]  [MIN] [MAX] [SEPARATE | /SHARED]
    [LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
    [WAIT]  [command/program]
    [parameters]
    "title" Title to display in window title bar.
    path Starting directory
    etc...

  • Css/js relative path for embedded server

    We have recently begun using relative paths for css and js files in our deployed applications:
    <link href="../../resources/css/global3.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="../../resources/script/globalScript.js" type="text/JavaScript"></script>
    I cannot figure out where to put the resources folder on my local machine so the pages will link correctly when running a project on my embedded server in JDev. Can anyone please help?

    Hi,
    the embedded OC4J has its configuration files at
    \jdeveloper_installdir\jdev\system\oracle.j2ee.<version>\embedded-oc4j
    However, if you use relative addressing then web applications try to find them relative to the public_html directory of the Viewlayer project
    Frank

  • Get the relative path for java class

    How to get Relative path for java class which is inside in web-inf directory in webapps

    ajay.manchu wrote:
    Hi gimbal2,
    My Requirement is i need to run a java class from batch file,when i created batch file in that i need to mention the complete path of the java class,so instead of mentioning that i want to provide only java class name,thats why i asked that one..
    can u help me regarding that....
    Thanks in advanceI wonder how that would work then. Let's take a fictive example. You have a class com.mycompany.myapp.Foo. This would mean that the class is stored in some directory like this:
    c:/webrootdir/myapp/WEB-INF/classes/com/mycompany/myapp/Foo.classTo be able to run such a class from the commandline using Java, you would have to invoke this command:
    java -cp c:/webrootdir/myapp/WEB-INF/classes com.mycompany.myapp.FooHow would knowing the exact path to this class help you?

  • Use Relative Path for Photoshop Action?

    I have a Photoshop Action that is programmed to open an existing file located in a specific directory.  The path to this directory is an absolute path, i.e.:
    C:\Program Files\Photoshop Actions\filename.jpg
    As long as the Action can find the file in the specified absolute path, everything works fine.
    My problem is that if someone tries to run this Action on a different computer (like a Mac), the path specified in the action does not exist and the Action will not work.
    The simple solution to this would be to make the action open the file located at a relative path.  This way no matter what computer the action is run on, it will always be able to find the file.
    Unfortunately, I don't think Photoshop Actions allow relative paths.  Does anyone know if using a relative path in an action is possible?
    Failing this, how would I use a Photoshop Script to somehow direct the Action to find the correct location of the file?  Or is there a better solution?

    The idea that I use in the xtools installer and else where is this:
    1) Convert the action file to XML.
    2) Package the XML file and the apps/ActionFileFromXML script with your stuff.
    3) An installer script will do a 'replace' (or whatever) on the XML file so that the paths are converted to whatever is needed.
    4) The new XML is saved and then converted to a .atn file which is then loaded.
    There is an xtools forum at ps-scripts.com that may have some info in addition to the PDF file that comes with the package.
    -X

  • How to specify relative path for background image  in xsl

    Hi,
    I am generating a PDF from Apcahe FOP. I have an xsl for that, in the xsl fo:block I am displaying a background image. When the image path is absolute like..C:\image\logo.png it works fine. But I want to have the image in my WebContent\images folder and my xsl file is in WebContent\xsls folder. So when I try giving the relative path as ../images/logo.png, the image is not displayed.
    Can anyone tell how to do this???
    Thanks,
    Sanjeev.

    I have a fo:block like this :
    <fo:block border-style="solid" border-width="0.2pt" text-align="left"
                             background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
                             font-size="8pt" font-weight="bold" color="white" padding-top="1pt"
                             padding-bottom="1pt">
                             <xsl:value-of select="tr/td/span" />
                        </fo:block>In the above code you can see that the the background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
    has been given as absolute. The images folder is in my WebContent directory. I want this path to be relative to the context of my application , something like background-image="url('../images/table_header_center.png')".
    Thanks.
    sanjeev.

  • Using relative path for in file/ftp adapter

    Hi All,
    How to have a relative path for file/ ftp adapter's inbound/outbound operation?
    Example: Consider $ORA_HOME = /home/oracle --> This environment variable can be different on different machines
    i want to drop a file in to $ORA_HOME/folder1/folder2 (Or poll for a file).
    <partnerLinkBinding name="FTP">
    <property name="wsdlLocation">FTP.wsdl</property>
    <property name="out_dir" type="LogicalDirectory">What do i write here???</property>
    <property name="retryInterval">60</property>
    </partnerLinkBinding>
    if i cant configure this in partner link section or in activation agent sction, how else do i achieve this?
    i am using 10.1.3.* version.
    Thanks in advance.
    Roshan.

    You can achive it using the deployment scripts if the directory is changing on the basis of the environment
    If you want to change at run time than you can use the jca properties to set using the variables at runtime.
    Regards,
    Ajay

  • Relative path to file in servlet class file

    Hello,
    I have several classes running as a Tomcat Servlet on my server. However, I have one class that I would like to access a file on the server.
    The problem is, what path do I use? I want to use a relative path as the servlet might be moved and I don't want to recompile each time the servlet is moved. For instance, I placed the file in the servlet directory under webapps in the same level with the WEB-INF directory. However, using "../../text.txt" does not seem to access it.
    What path should I use?
    Thanks in advance.
    Chris

    This is what I have done:
         String FS = System.getProperty("file.separator");
         String ctx = getServletContext( ).getRealPath( "" ) + FS;
         URL url = new URL("file", "", ctx +   "somefile.txt");
         //Create a BufferedReader for reading the inputstream.
         BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()));This gets you back to the "root", or one level above WEB-INF. Add the folder name where the file is located. As in      URL url = new URL("file", "", ctx +   "theFolder/somefile.txt");HTH,
    WalkGood

  • Relative paths for images upset by forwarding requests

    Hello World.
              I am using a web app deployed in Weblogic 5.1 with service pack 8.
              I have hit a problem which puzzles me. When I forward a request from
              one JSP to another (say from A to B) the web server seems to take the
              URLs of the images on the served file (B) relative to the path on the
              calling file (A). Here's a detailed explanation...
              Suppose I have a the web app structured as follow
              /oddApp/launch/A.jsp
              /oddApp/B.jsp
              /oddApp/images/tick.gif
              Page A simply stores its request URI and forwards its request to page B
              <jsp:forward page="/B.jsp" />
              Page B displays its requestURI, contextPath and servletPath. It also
              attempts
              to show three images
              <img src="images/tick.gif">
              <img src="../images/tick.gif">
              <img src="/images/tick.gif">
              When I invoke page B directly, the first image is shown, the others are not.
              When I invoke page A, it forwards to B and the second image is shown, the
              others are not.
              In each case the URI, contextPath and servletPath are correctly displayed
              with regard to page B.
              URI = [oddApp/B.jsp]
              contextPath = [oddApp]
              servletPath = [B.jsp]
              The URI in A.jsp is also correct (i.e. /oddApp/launch/A.jsp).
              The search for the images seems to be relative to the original URI (i.e. not
              the URI used to forward), which strikes me as daft. It means that page B
              must be aware of where it is being called from. It is perfectly plausible
              that
              relative paths which suit when called from one location are incorrect when
              called from another.
              I had thought that including the leadling slash (as shown as the third
              image)
              would cause the search relative to the document root (/oddApp/), but this
              appears not to be the case. The search is done relative to the root of the
              server not the web app.
              Adding jsp mappings in the deployment descriptor of the web app does not
              help (I had thought it a long shot anyway).
              Does anyone have any thoughts on this?
              PHiL
              

    i face the same problem (WinNT, WLS6.0): my wep app has a contextRoot " root " which makes it react to the URL: http://host:port/root /: it is this folder which will be used as a basis by the Web server But in the jps I use a relative URL for images: / images/toto.gif : it works very well when I deploy my jsp out of a Web-app by setting a document.root to the weblogic web server.On the other hand, once deployed in a Web-app, images are not found because the default path of the browser is http://host:port, without the context root of the Web-app! In other words, my war has images/*.gif in its root but when /images/toto.gif is resolved in a jsp, as the relative URL is not prefixed by my context-root, the image is not search in the war! actually, if I type http://host:port/root/toto.gif, my image appearsany clues? an alias on the web server? a setting in web.xml/application.xml and their weblogic equivalent files?
              

  • Relative path to Images ?

    I recently migrated from Win XP to a new PC Win 8. Moved all the files & D.W. related apps... all went relatively seamless. But I noticed the Relative path to any Image that created in Photoshop still has the old path
    i.e.
    Original (old) file:///C|/Documents and Settings/My Documents/PMF Web Design stuff/Menu_Button_Home_2013.psd
    New file:///C|/Documents/PMF Web Design stuff/Menu_Button_Home_2013.psd
    Is there a file in my D.W. site that has these paths ???If so I could do a global update ...  I have dozens of these type entries... would hate to do all 1 by one.
    THANKS in advance

    Guess I did Not explain my dilemma correctly.  My site worked fine after I migrated to the new PC... all the SOURCE Images were in my root folder... What I could not find (up until now) was where the ORIGINAL .PSD files were referenced. D.W. keep sync information with Photoshop, if/when the Original gets updated... D.W. notifys you. Please see scrnshot GREEN arrow below.
    After several hours of P.D. I figured it out for future reference.... the ORIGINAL file is referenced in a sub-folder of your Image Folder... called _NOTES each & every image has an associated .JPG.MNO file.
    Simple example Home_Button.JPG resides in Image folder... Home_Button.JPG.MNO resides in _notes.
    Down near the bottom of Home_Button.JPG.MNO is a record that points to the ORIGINAL Parent file.
    Looks something like:    <infoitem key="FilePathSrc" value="file:///C|/Users/Documents/PMF_Design_PSD/Home_Button.psd" />
    I had hundreds of these that need updating... I used the D.W. Find & Replace feature... took a few tries to get all the options set correctly. But it saved me several hours.
    Hope this helps someone in the future migrate to/from PC's,

  • Relative path with images

    Hi All -
    I have a strange situation with relative paths. When I use a relative path in cfinclude it works. But when I use a relative path is "src" attribute of <img>, it does not work. Can anyone suggest why could this be happening?
    Thanks

    Adam Cameron. wrote:
    Because you're expectation is that apples work the same as oranges.
    CF relative paths are relative to the CF file the path is in; HTML relative paths are relative to the URL browsed to.
    Remember CF code is run on the CF server; HTML is rendered on the browser.
    Adam
    The beauty of relative pathing is that it plucks them from the tree and calls either fruit.

  • Relative path for HTML file

    Hi ,
    This is my requirement. In the ESS Personal information overview page, I can add a HTML file to the additional information section.
    I have created a HTML file by creating a web module and enterprise application and deployed the same through NWDI.
    I declare a resource wher ei mention the path. Here i specifed the complete path of the html file ... like
    http://hostname:portname/addinfo/addinfo.html.  Which i know is a wrong thing to do since when i move the html filel to the production system it will still be accessing the html file in the dev system.
    How do i give the relative path here so that the html file accessed is from the production system when we  go-live.
    Please suggest.
    regards
    sam

    Hi,
    One simpler solution is to use an AppIntegrator iView, as explained in the weblog <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2786">Integrating your Web Front-ends into the SAP Enterprise Portal using the Application Integrator</a>. It worked well for us.
    You can remove the user authentication part in the portalapp.xml if you don't need it.
    Regards,
    Martin

  • Relative Path for Attach menu forms or icon file

    How should i able to provide relative path while
    attaching Forms,menu or icon files in the Form application.
    So that it can be easily portable
    Thanx in advance
    Upendra

    You can use Regedit and do it manually. I am not sure but it seems to me that using Software Packager for deploying application can also change registry environment variables.

  • Relative path for files

    hi all,
    I am making a small program that needs to store some of the users preferences in a text file. I want the text file to be in the jar when i am finished and in the same folder as the main class. I am having a problem though with writing to a reading the file in a relative path. when i use "args.txt" it reads to the c:\args.txt and not the folder in which the program runs. Same thing with "\\args.txt" and "/args.txt". Any help? Thanks! :)

    If your file is in the same directory as the program the relative path is simply the file name : "args.txt". Also possible is "./args.txt".
    Keep in mind though that you can't write to a file in a jar, and even reading it is more complicated than with the ordinary I/O classes.
    Look up the getResourceAsStream method in the API (I think it's a method of the ClassLoader class).

  • Relative path for DllPath configurion settings

    I want to put oracle client dlls in project directory and to use relative path to point to unmanaged dlls but in this version of odp.net I cann't .
    Is it possible to add this feature? For now I will copy the DLLs in application output directory.

    The Oracle .NET feature requests are tracked here:
    https://apex.oracle.com/pls/apex/f?p=18357:46:7715104559110119
    Any OTN member can add their own feature request to be voted on by the community. This Oracle .NET feature requests are reviewed periodically by Oracle Development and PM when planning future ODAC releases. On a regular basis, Oracle reviews all the requests and decides which ones to implement.
    If you would like your feature request considered, please add it here. Be as clear and concise in your description so that others, including the developers implementing your feature request, know exactly what you are requesting. Your feature request is straightforward, so I don't see a potential problem.
    Don't be discouraged if your feature doesn't receive a lot of votes. The most popular features are not automatically incorporated into the next future release. We pick and choose features based on their usefulness, popularity, ease of implementation/testing, Microsoft's product direction, and other factors when deciding what features to include.

Maybe you are looking for

  • Error while creating temporary table

    Hi All, I am trying to integrate ODI and BAM . I have followed all the steps given in the guide.While creating interface i am getting the error while LKM is working. I am using LKM SQL to SQL and IKM Oracle BAM Insert ( as the inserted data should be

  • Not sure if im posting query in right forum

    Hello all, I am currently writing a web service using SOAP to connect to the google API i have the search working and it is returning the reults in an XML format and then extracts relevant information to a destop file for the user to easily view. Any

  • Control Delivery's Save - if condition is not meat.

    Dear all, I need help at the following. I added code at USEREXIT_SAVE_DOCUMENT_PREPARE in order to control if the delivery is ready to be saved or not. After the MESSAGE .... 'E'...... I get another message Risk of posting several mat.documents for o

  • Apple TV 2 won't fill the TV screen

    My ATV 2 won't fill the entire TV screen.  It just plays in a small rectangle within the entire screen.  I've tried adjusting the video settings.  It is a 1080p HDTV.  When I set the ATV to 480 it fills the screen.  When I set it to 720 or auto it do

  • Values not Posting in ARE3 Document

    Dear All, I am taking a print of my ARE3 Document which is created for Deemed Exports,in this document My values for excise,secondary cess and higher secondary cess are not appearing,only the % that is 14%,2% and 1% is appearing. Since we are capturi