Knowing the path of word automaticly

Dear all
If I want to use microsoft word I write host then the path
but if the path in another partion then the word will not work
so how can I determine automatic the path in stead of I write it
I want the solution for dev6i and dev10g

rundll32.exe is a wrapper-executable which enables you to execute a function/procedure from a dll. The second argument url.dll is the name of the dll the third argument FileProtocolHandler is the name of the "procedure" in the dll to be called. The last argument, the filename, is passed to the procedure-call in the dll.
The procedure FileProtocolHandler in url.dll is a kind of "dispatcher procedure", it decides by the extension of the given filename which program has to be started and does that.

Similar Messages

  • Need to know the path of current Form/Report

    Hi All,
    I need to know the path of the Current Report/Form, but i dont want to use
    get_form_property(:system.current_form,file_name),
    is their any other way for getting the current path from where the report/form is running
    Imran Ahmed

    Hi,
    I dont want to use
    get_form_property(:system.current_form,file_name)
    because it give me the current directory with the form name for eg. (c:\dev6i\temp\abc.fmx) then i have to use
    cur_file_name := get_form_property(:system.current_form,file_name);
    total_length := length(cur_file_name);
    cur_form_name_length := length(get_form_property(:system.current_form,form_name))+4;
    path_length := total_length-cur_form_name_length;
    cur_path:= substr(cur_file_name,1,path_length);
    to get the actual path, and i dont find any function name GET_WORKING_DIRECTORY under WIN_API_ENVIRONMENT theie is get_windows_director and get_temp_directory but not the above, if you have that function then please mail me on [email protected] I also cannot use read_registry(forms_path) because in registry i have different paths.
    Thank You

  • How dos the application will know the path of persistence.xml file

    Hi ,
    I am seeing examples for ConatierManaged EntityManager
    @PersistenceContext
    public class Test extends HttpServlet
    public void doGet()
    EntityManager em
    // JnDI Lookup code
    em = (EntityManager) ctx.lookup("java:comp/env/persistence/em");
    em.persist(Employee)
    }Inside web.xml file
    <web-app>
    <persistence-context-ref>
    <persistence-context-ref-name>persistence/em</persistence-context-ref-name>
      <persistence-unit-name>my-pu</persistence-unit-name>
    </persistence-context-ref>
    </web-app>Please tell me how the Application will know the path of persistence.xml file .
    Thank you for reading

    it is predefined; JPA always looks for the persistence.xml file in the META-INF folder.

  • How to know the path of file.

    i am facing a problem,i have prepared a jar file of an application, which should have a path-file in it & that path-file contains loaction from where applicatioin starts, and creates some file there. but i dont know loaction when i prepared the jar file.how to solve this problem.

    but it is not in my hand, My jar file will be used by a vendor to code a Servlet which will access the classes in the jar file. it cannot be solved by My jar file.
    My Question was
    I have to deliver a jar file which contains my classes. This jar file will be used by a vendor to code a Servlet which will access the classes in the jar file.
    One of the classes in this jar file is required to simulate a file-system (we call it "Repository"). Essentially, it creates a certain directory and reads-writes files into it.
    My problem is how to specify the path (i.e. directory location) of the "Repository". Following are the possibilities I could see :
    1. Hardcode the path in the java code - This is not desirable since we do not know it while I am preparing my jar-file.
    2. Create a properties file, put Repository.path=... as an entry and package it with the jar-file - The problem is that sine this properties file is packaged in the jar, it is read-only. Hence, it cannot be changed at runtime.
    I want to know what are the general approaches to this?

  • Do not know the path!!!

    Hello! When I tried to make the first Java programmed word, the instructions asked me to locate the Java folder and put the typed file in notepad into that folder. But I cannot find the Java folder. Can somebody help me. I promised I will give you 10 Duke Dollars.

    The path is <C:\Program Files\Java>
    But the drive C:\ might be different to your computer. Just put the drive letter of the drive that have windows xp in it. (e.g. E:\)

  • I want to know the path to find the document.

    hi everyone;
         i am reading the guide. There is a document referred in the Guide.
    Can you tell me how to find the document.
    Thank you
    Charles

    Hi,
    The type are:
    A     Inquiry
    B     Quotation
    C     Order
    D     Item proposal
    E     Scheduling agreement
    F     Scheduling agreement with external service agent
    G     Contract
    H     Returns
    I     Order w/o charge
    J     Delivery
    K     Credit memo request
    L     Debit memo request
    M     Invoice
    N     Invoice cancellation
    O     Credit memo
    P     Debit memo
    Q     WMS transfer order
    R     Goods movement
    S     Credit memo cancellation
    T     Returns delivery for order
    U     Pro forma invoice
    V     Purchase order
    W     Independent reqts plan
    X     Handling unit
    0     Master contract
    1     Sales activities (CAS)
    2     External transaction
    3     Invoice list
    4     Credit memo list
    5     Intercompany invoice
    6     Intercompany credit memo
    7     Delivery/shipping notification
    8     Shipment
    a     Shipment costs
    b     CRM Opportunity
    c     Unverified delivery
    d     Trading Contract
    e     Allocation table
    g     Rough Goods Receipt (only IS-Retail)
    h     Cancel goods issue
    i     Goods receipt
    j     JIT call
    p     Goods Movement (Documentation)
    r     TD Transport (only IS-Oil)
    s     Load confirmation, reposting (only IS-Oil)
    t     Gain    /  loss    (only IS-Oil)
    u     Reentry into storage (only IS-Oil)
    v     2-step Goods receipt (only IS-Oil)
    w     Reservation (only IS-Oil)
    x     Load confirmation, goods receipt (only IS-Oil)
    $     (AFS)
    Regards,
    Renjith Michael.

  • Search path if know the SPRO T.code???

    Dear Expert
    In SAP Menu bar , if i know the t.code e.g. VA01 but if i don't know the path i can find out the path by using the T.code [SEARCH_SAP_MENU]
    BUT
    If i know the SPRO  T.code e.g. OBD2 or any other , and if  i don't know the path so ..... in this case like above t.code is there any T.code available where i can find the path or any other method or technique available to find the path of any SPRO T.code
    Thanks in advance

    Execute SPRO.  Now from top menu bar, Additional Information => Additional Information  => Display Key => IMG Activity.
    Now you can see some codes on right side against each IMG text.  Normally, the last four characters would be the respective TCode but this is not applicable to all.
    thanks
    G. Lakshmipathi

  • Finding the path to a database

    Hi to all,
    i'm writing a simple GUI that have to put some data to a MS ACCESS db.
    I wold like to know how i can dinamically determinate the path to thi database (to improve portability).
    I try with getClass().getResource("/mydatabase.mdb"); but always I have 'null'
    Tanks to all guy help me!

    You have to give it the correct path to the file. All
    the code you gave does is resolve the path, it doesn't
    alter that it still needs to be a valid path.My trouble is that I could don't know the path to the file...there is a way to automatically find it?

  • Where exactly does the path in Tomcat start?

    I am trying to create a jsp page that outputs a random image. The jsp page is directly in ROOT. The image files are in ROOT/img/random/.
    What I did was write a simple java class(not a servlet) to read the contents of random and then just randomly choose an image in that file. This class is in ROOT/WEB-INF/classes/com/utilities/, where the package is com.utilities.
    My question is what is the proper path to the images so the java program can read its contents?
    null

    Thanks, but that really doesn't answer my question.Then ask your real question, because that's the right
    answer.
    I
    need File to be able to access files under Tomcatand
    no matter what path I try it can't read it.exists()
    always returns false. I just need to know the path.I
    will eventually move it out of ROOT, but theproblem
    I am having will still exist in any other folder
    under webapps.Wrong, wrong, wrong.Right, right, right. How do I know this? Because I tried it
    >
    I tried to put this outside of ROOT, but Tomcatwill
    not automatically redirect to that page, using the
    instructions at the Tomcat site for changing the
    default start page. Neither does using a simplehtml
    page to redirect.The correct way to access a file in a web context is
    to use the servlet context and its
    getResourceAsStream method. That way you can find it
    as long as it's in the CLASSPATH. Put the file in
    your WEB-INF/classes directory and you'll be able to
    read it. It'll work in a WAR file or in exploded
    mode. It's portable, too.This is wrong. I put that image file in classes, guess what? It still can't read the file!!!!
    >

  • How to get the path of OS(whether it is linux or Windows or Mac OS)

    hi..
    i want to know the path of the operating system currently running(whatever it is windows or Linux or Mac).Is it possible to know.... please respond me if anyone knows

    Bharath.N.Kumar wrote:
    why im dying to write a file on OS drive is, my application is portable and he can carry that app in a Compact-Disc(CD), can run on any machine(OS).If he runs that application from CD,the file generated cant be written on CD,so that i need to create this file on a Common folder(folder which must exists and independent of OS) in that system.Since the "directory where the OS resides" is
    a.) a pretty pointless question in Unix and
    b.) definitely not writable by most users on all major operating systems
    I strongly suggest you choose another directory. "user.home" has already been mentioned. It is a System property that tells you where the current users home directory is. That's almost universally available and almost always writable, so that's definitely the better choice.

  • How to determine the path of the jar file cache of javawebstart?

    Hello, I need to know how to determine where the java web start application
    file jar cache is stored on windows system hard drive.
    I would have launch of the inner processes
    I have need to know the path of file jar .
    example if my application is myAppliation.jar
    in code generic class of myAppliation.jar i have the command runtime
    String strCmd =
    System.getProperties().getProperty("java.home") + "\\bin\\java" +
         " -cp " +
         System.getProperties().getProperty("java.class.path") + ";"
         + " anotherClass.class ";
    Runtime.getRuntime().exec(strCmd);
    the anotherClass.class has need
    of the contained library in myAppliation.jar.

    Thanks i have tried this metod and function
    java.net.URL resource = classLoader.getResource("myResource");
    if (resource != null) {
    String s = resource.toString();
    if (s.startsWith("jar:")) {
    int index = s.indexOf("!");
    if (index > 4) {
    String fileurl = s.substring(4, index);
    if (fileurl.startsWith("file:")) {
    String path = fileurl.substring(5);
    // now path is the path to the jar file in the cache containing the resource
    System.out.println("file jar: "+path);
    }

  • How can  i know the location of rmiregistry throught the batch file ????!!!

    i would make a batch file that launch my java application wich uses RMIREGISTRY, is there a way to know the path where is located the "rmiregistry file" -if it exists- in the client machine throught the batch file in order to start it befor to launching the application.?

    Yes, ask the person who was responsible for making the RMI registry run.

  • Getting the path of  a resource file inside the context

    I am trying to migrate some of our applications running on OracleApplicaiton Server. We have data resource xml file needs to use in the applicaiton. In Oracle Application server we used to give the actual path of the xml file to load the xml file to the parsers since we know the path of the directories after deploying the application as an ear file. How can I get the path of the files in weblogic after deployment. If this is not supported what is the alternative to get the relative path of that xml file to load in ? The xml file is in the root folder of the context.
    THanks
    Suneesh

    Hi Suneesh,
    Please try enabling the <show-archived-real-path-enabled> Tag to TRUE ...And then everything will work fine with the following code:
    context.getRealPath()
    At domain level in config.xml. For example:
    <web-app-container>
    <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
    </web-app-container>
    *****OR *****
    At the web app level in weblogic.xml. For example:
    <container-descriptor>
    <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
    </container-descriptor>
    For Archived Applications , It is always a best practice to use the getResourceAsStream() rather than using getResource().......Below code snippet should workout in 99% cases
    InputStream stream=this.getClass().getClassLoader().getResourceAsStream("someXMLorPropfile.properties");
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic/?p=408  (Middleware Magic is Here)

  • How I can know the virtual directory in 9ias

    I want to know the path for image files sothat I can use the images in my html code.
    If somebody know please write back to me.
    Thanks,
    Ibrahim Orabi

    Hello,
    u can use the table hr_all_organization_units, join its organization_id with org_id from ra_customer_trx_all to get the organization name from which the invoice has been created.
    For the responsibility from which it is created, i think it is not stored in the database...

  • Problem with the path of field  in process

    Hi,
    We have a problem about data/FSFIELD_ too.
    To create the form we have used a wsdl connection.
    And when we make a process we have :
    /process_data/demandeForm/object/data/xdp/datasets/data/FSFIELDS_
    So we can't acces to elments of the wsdl form.
    When we execute the process nothing happend, so we think it's normal because we don't have acces to elements.
    We have tried to change the path :
    /process_data/demandeForm/object//data/form1/Body/getRequestState/in0,
    using the xml schema of the form ( form1/Body/getRequestState/in0 )
    and we tried /process_data/demandeForm/object//data/in0
    but this solution doesn't work.
    (in0 is the field name).
    Have you any idea ? please

    In the situation where no schema exists the process variable has no concept of the structure of the xml data that is being used. Hence it uses the FSFIELDS_ node as a placeholder for the root node. So if you know the path starting from the root to get to the node that you want then you can create an expression (by typing it in) that looks like this:
    /process_data/demandeForm/object/data/xdp/datasets/data/FSFIELDS_/rootnode/next node/next node/target node
    Or you can use the XPath ability to search for the node by using a double slash. Th eexpression woul look like this:
    /process_data/demandeForm/object/data/xdp/datasets/data/FSFIELDS_//nodename

Maybe you are looking for