Get SBO Application Path

Good Morning,
I am looking for a method to get the path of my SBO application.
I need the path to automatically start a SBO-process.
Thanks for helping. Have a nice day!
Sebastian

Hi Sebastian,
In order to get the installation directory you need to take two steps:
Under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\sap" read the GUID of the required product, for example if you wish to get the installation directory of the client read the value of "SAP Business One Client Setup" – the value is the installer GUID.
Under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GUID" (where instead of GUID you need to put the GUID from step 1) read the "InstallLocation" value.
Hope it helps
Trinidad.

Similar Messages

  • How to get the application path?

    Does some body know how to get the application path in Java? Here is an example about what I'm thinking: Let's imagin the application is on "c:\try" or "c:\ProgramFiles\MyApp". My question is how can I find the path where the application is. Please give an example if you know the answer. Thank you so much.

    Those two replies give you some useful directories, it's true, but maybe not what the OP asked. However the OP asked for something that doesn't have a meaning (applications don't have to be "on" any directory, whatever that might mean).
    Would the OP like to describe what the actual problem is here?

  • How to get application path in java bean

    hi all,
    We will be using <%= application.getRealPath("/") %> for getting the application path in jsp. is there any similar way to find the path using a bean. Please do help....
    thanx
    Message was edited by:
    end

    I try to use application.getRealPath("/") in my .java file, but gets an error "application can't be resolved". Do you need to include any library in order to use "application.getRealPath("/")"?
    Thank you.

  • Getting application path when launching a Jar

    Hi,
    very simple
    how do you get the application path when launching a jar file?
    NNiol

    Unless you mean the standard application folder. That application path is an OS specific concept. On Windows systems, for example, you can get the application path by using System.getenv("ProgramFiles"); but that won't work on other systems.
    If you're looking for a constant location to store data files, you'd do better to create an application-specific directory under System.getProperty("user.home");.
    And if you're just looking for the place where your jar file is, you can successfully follow the previously given advice.
    --DNP                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Sbo application not found

    hi
    when i  run the my program im  getting  'SBO Application not found' error

    Hi,
    It is always a good idea to clarify your issue but writing more of the case instead of the final result only. No one know what could happen just based on one error message.
    Thanks,
    Gordon

  • How to get the file path in adf application

    hii all,
    i have a txt file that i am using in my adf application,
    i am passing this txt file through a File Reader, for which i have to mention the file path.
    The file is in web-content and when i am hard coding the complete file path i.e C:/JDeveloper/myApp/ViewController/public_html/log.txt
    the application is working fine when run on integrated weblogic server.
    My requirement is to access this file without giving the static file path, as in case i have to use this application on any other machine..
    for that how to mention the file path-
    i tried using FacesContext to get the context path :-
    FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
    which gives me
    \myApp-ViewController-context-root
    after appending public_html\log.txt
    I am using the following path to access the file :-
    \myApp-ViewController-context-root\public_html\log.txt
    again i am getting the java.io.FileNotFoundException
    Does anyone know how to use file from inside the web-content without giving the complete path..???
    Thanks

    Hi,
    If you put your file under public_html folder, you can use this code to access the file:
    For example file is : log.txt
    FacesContext.getCurrentInstance().getExternalContext().getRealPath('/log.txt').toString().trim();
    Thanks.
    - LSR

  • How to get the current path of my application in java ?

    how to get the current path of my application in java ?
    thanks

    To get the path where your application has been installed you have to do the following:
    have a class called "what_ever" in the folder.
    then you do a litte:
    String path=
    what_ever.class.getRessource("what_ever.class").toString()
    That get you a string like:
    file:/C:/Program Files/Cool_program/what_ever.class
    Then you process the result a little to remove anything you don't want:
    path=path.substring(path.indexOf('/')+1),path.lastIndexOf('/'))
    //Might be a little error here but you should find out //quickly if it's the case
    And here you go, you have a nice
    C:/Program Files/Cool_program
    which is the path to your application.
    Hooray

  • How to get the ablolute path of the web application in WebSphere?

    How to get the ablolute path of the web application in WebSphere?
    For example:
    I have installed IBM WebSphere on D:\WebSphere\Appserver, and I created a new appliction named "myapp" on D:\myapp,. How can I get the absolute path of application "myapp"? In other words,how can I get the absolute path of the application's
    root directory?

    In the WebSphere(default), what directory is the Java Bean's root directory ?

  • How to get full file path while uploading a file in flex Applications

    How to get full file path while uploading a file in flex applications.
    FileReference Object is giving file name and other details but not the actual path.
    Is there any workaround to to get the file path?.
    Thanks

    Why not ask in the Flex forum; it is more likely that someone over there knows.

  • How to get Application path? Urgent!!!!

    Hai!
    I have developed one application in Swing. I want take application path in that application. How can I get? Anybody pls help to me.
    Thanks in advance
    Joseph

    You can try this code to get all properties:
    Properties props = System.getProperties();
    Enumeration enum = props.propertyNames();
    while(enum.hasMoreElements()){
         String name = (String)enum.nextElement();
         System.out.println("Prop Name: " + name + "\tValue: " + props.getProperty(name));
    }And to find more about printing you can check this URL:
    http://java.sun.com/j2se/1.4/docs/guide/jps/spec/jpsOverview.fm.html

  • Getting application path

    Hi there! I'm developing a taglib and given a
    PageContext object, how can I get the relative path for my application? Like http://myhost/myapplication ???
    Thanks

    request.getRequestURL() will give you the url.
    have a look at http://javaalmanac.com/egs/javax.servlet/GetReqUrl.html?l=new
    for more details
    Christoph

  • How can I get my application Context Path?

    How can I get my application Context Path via webdynpro code?
    Let say I'm accesing my application with URL
    https://myapp:8443/webdynpro/dispatcher/local/MyApp/App, how can I get
    the value 'https://myapp:8443' from webdynpro code? In J2EE, this is
    equivalent of HttpServletRequest.getContextPath() method. Do we have
    this method call in webdynpro object?

    Hi John,
    Yes you can achieve that in Web Dynpro.
    Try the following -
    // USE THIS FOR GETTING THE SERVER NAME AND IMPORT WEBLOGIC.JAR FILE IN THE JAVA BUILD PATH PROPERTIES
    HttpServletRequest request = (( com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
    //GETS THE HOST NAME OF THE SERVER
    String strHostName = request.getServerName();
    Thanks,
    Sam

  • How to get SAP application language only with SQL code

    Hi all,
      is there a way to get the current language only whith a sql query on the Database?
    I know that Ican find that information from the Application object of the UI Api but in this case i can't access them.
    Thanks in advance, Luca.

    Hello
    You cannot get the Application language (GUI Language) from SQL, because it is stored on the client machine filesystem
    Location is defined in
    C:\Program Files\SAP\SAP Business One\Conf\b1-config-path.txt text file, which by defaulf is:
    %USERPROFILE%\Local Settings\Application Data\SAP\SAP Business One\b1-current-user.xml file
    Regards
    J.

  • How can i get the local path to my cached app in jws

    Hi,
    sorry, i think it is a stupid question of me. but i'm a newbie in java and jws...
    So my question is...
    is it possible to get the absolute path to my downloaded an d cached jarfile? (e.g. c:\program files\java web start\.javaws\cache\http\Dmy.server.com\P80\RMmyapp.jar)
    thanks a lot for any help.

    I just answered this elsewhere, but here it is again.
    This code seems to work. I found it last year in one of the forums.
    I use it to find resources in Jars or to find images when I am in an IDE
    The "SetIcon.class" below should be changed to the class you are running from.
    Note: If you are running a class in a package, this returns the root of your application instead of the "folder" containing your package. This would mean that the "images" folder I refer to below is under the root folder, not the package folder.
    javax.swing.ImageIcon img;
    URL imgPath1;
    String imgPath2;
    imgPath1 = SetIcon.class.getProtectionDomain().getCodeSource().getLocation();
    imgPath2 = imgPath1.toString();
    imgPath2 = imgPath2.substring(6); // strip off the "file:"
    imgPath2 = imgPath2 + "images/sample.gif";
    Hope this helps,
    Hale

  • Get Windows Folder Paths on Win 2000

    I downloaded the windows_folder_path.vi from NI site, where I can see that "This VI is supported on Windows 2000, XP, and Vista."
    If I use it in an executable that searches for Application Data folder, it works under XP, but it doesn't under a fresh Win 2000 SP4 installation.
    A pop-up with the message:
    Entry poin Not found
    The procedure entry point SaferGetPolicyInformation could not be located in the dynamic link library ADVAPI32.dll
    is shown.
    When I press the OK button, another popup
    LabVIEW: Resource not found.
    An error occurred loading VI 'windows_folder_path.vi'.
    LabVIEW load error code 3: Could not load front panel.
    I'm confused because here (MSDN, Microsoft Developer Network) I can see that  the SaferGetPolicyInformationfunction requires WinXP or Vista
    Isn't this vi expected working properly under Win 2000?
    In the next days I'll do the same test on a Vista machine, and I hope.... 
    How can I get the Application Data path on WinXP, 2000 and Vista? With different languages OS this folder has a different name (Application Data, Dati Applicazioni, ...) so I can't build the path by myself.
    I don't know if this helps, but I'm developing with LabVIEW 8.2.1and WinXP Pro
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded
    Solved!
    Go to Solution.

    Use the registry functions of LV to get direct access.
    The folders for the current logged in user is under:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre​ntVersion\Explorer\Shell Folders, the value is AppData
    The Fodlers for all users is under:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr​entVersion\Explorer\Shell Folders, the value is Common AppData
    Message Edited by waldemar.hersacher on 10-22-2008 10:10 AM
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

Maybe you are looking for

  • Two iTunes accounts on one mac.

    My wife and I share a Mac mini with all of our music. We both sync our iPods to the same iTunes, meaning that we don't have different accounts for the computer. She has an apple ID attached to her credit card and I have a separate ID. Sometimes when

  • How do I add an ssd to my mac mini

    I bought an SSD to install in my Mac Mini. Can I use it as two drives. I really don't want a fusion drive. How do I install it and how do i get my programs and files reinstalled.

  • SRM Vendor product number field populating to PR

    Hi, We are trying to pass "Vendor product Number" value from non-catalog sc to purchase requisition "Vendor Mat" field using BAP_REQUISITION_CREATE. However, the value entered on shopping cart is not coming to PR. We are on SRM 50. searched oss notes

  • Labview 7.0 is compatable with Labview Imaq6.1 , vision builder 6.0 and Imaq run time engine 6.0.

    Sir, My system is PXI 8174 and i an using NI 1411 card for my application. I want to know the compatability of the softwares. Whether Labview 7 is compatable with Labview Imaq 6.1 , vision builder 6.0 and Imaq run time engine 6.0.

  • I can't sign into iMessage. Help, please!

    I was fooling around with my new iPad and I changed the "set time automatic" or something to off and back on. When I tried to get into iMessage a bit later, it said my Apple ID or password had changed. It said to enter my ID and password and it seeme