How to find path?

From this path...
srv01/iplant/home/apps/dir.txt
<cfset path = 'srv01/iplant/home/apps/dir.txt'
i want to find filename and path....
<cfset filename = listlast(path,'/')>
filename : <cfoutput>#filename#</cfoutput><br
/>
How will i find filepath?
filepath = srv01/iplant/home/apps/

Amm85 wrote:
> I getting this path from a text file...
> then parsing this path to find
> filename and filepath.
>
> so i can't use getDirectoryFromPath
Why not? Is it not a path? If it is a path, I would expect
getDirectoryFromPath() to remove the file from the end and
return the
rest of the list. Probably using the above mentioned
listRest()
function internally.

Similar Messages

  • How to find path of third party applicatoin

    we can run any third party application using Process p = Runtime.getRuntime().exec.... etc
    But exact location of that program executable I do not know because it is upto user where he installs C drive or D drive or so.
    How to find the path of that third party application such as Yahoo Messenger "YahooMessenger.exe"
    Thank you.
    Edited by: wcomet on May 17, 2008 11:06 AM
    Edited by: wcomet on May 17, 2008 11:07 AM

    Since you'va already made Java non-portable by using Runtime, you're probably bbest off using the OS's capabilities to find the program's path.
    If the 3rd party program was always contained in Java's classpath list, you could use Class.getResource().

  • How to find Path from T-code in SPRO

    Dear All,
    Please tell me how find Path in SPRO if I know T-code
    Regards,
    Ishwar

    Dear Ishwar,
    <b>After entering T code SPRO - it takes you to Customizing : execute project,Click
    on SAP Reference IMG or simply press F5.Then click on Find Indicator(control +
    F),enter the text say for Example Order type Dependent parameters and click on
    Tick mark or press enter.</b>
    After getting the results,select one Row &  press enter.this will show the branch
    out.
    For Example Define order type - OPJH is the T code,now
    after clicking on find indicator,then give this text and
    search and then after getting the result,select that row
    and press enter.it will branch out.
    Regards
    Mangal

  • How to find path if u know t.code from IMG

    HI EXPERTS
    if u use t.code SEARCH_SAP_MENU or if i go by SE93
    i can get path for only for the t.code use for   SAP EASY ACCESS MENU  only e.g XD01 , MM02, or VA01
    like any t.code have no configuration part
    my question is i want the path for t.code which is use in configuration (SPRO --IMG ) part e.g V/08 , VOV8
    like for this kind of t.code how can i get path
    what is procedure or any t.code
    and vice versa also
    if i know description how can find t.code
    thanks

    Hi,
    Goto t.code VOV8. In MENU>Table view>Print.
    take the value in view field : V_TVAK.
    Goto SM30. enter V_TVAK and choose customizing. Click on continue W/O specifying project.
    Select Sales - Define Sales Document Types and press enter. system will take you to path.
    Note : It will not work for all the t.codes
    This is one way of doing. 
    Click on find button, enter text and search.
    Regards,
    Chandra

  • How to find path of database

    windows
    run ---services.msc
    how to find database name,
    path,
    and home
    thanks for help

    If you are on windows, you might just be able to sqlplus / as sysdba in a command window, since all that stuff is defined in the registry. If there is more than one db, this might be completely misleading. Checking the services under the manage option from right clicking on the My Computer might answer that. Searching the registry for oracle homes might answer it better. It all depends on the history of the 'puter, and how cluelessly it has been pounded upon.

  • How to find PATH of the executable (Windows)

    Is there an object / method that would yeild the PATH of the .exe file?
    For example:
    I use a .svb file in PATH A to run a .exe in PATH B.
    PATH B contains some input files along with the .exe.
    How do I get PATH B so that I can find and access my input files.
    Any suggestions are greatly appreciated.

    no. you could search the entire disk, of course. Or if you know the application has it's path someplace specific in the registry, you could look there (not that Java provides a registry reader, but there's a package called JNIRegistry out there that can).

  • How to find path from within java class where .class file is located

    I have a situation where my Servlet is running.
    I need to access a text file which is locted in the same
    place where the .class file for this Servlet is located.
    I cannot specify absolute path in my java file.
    I am in Windows platform.
    My filename is specified as
    File("myfile.txt");
    the problem is it says file not found.
    how do i fix this prob?
    thanks in advance

    String filename="/relative_path/file_name.txt";
    try {
       //static method approach
       InputStream is = YourClassName.class.getResourceAsStream(filename);
       //non-static method approach
       InputStream is = getClass().getResourceAsStream(filename);
    } catch (IOException e) { ... }tajenkins

  • How to find path of a file in WebDynPro Application

    Hello,
    I have created a WebDynPro application. In this application i have created an XML file under
    src->packages->resources. The resources folder i created myself.
    I have also deployed the file on a remote server. This servername & portNumber can change too.
    Now i want to get the handle of my XML file (which is present in the same jar) so that i can user it and populate it.
    <b>The following code doesnt work:</b>
    <i>File file =new File("WebDynProProjectName/resources/filename.xml");</i>
    Regards,
    Aayush

    Hi
      By default it puts it under resources folder. If you want to create your own path then
    1. Create the XML file (eg. output.xml) to some location in the server (eg: c:\Test\files)
    2. Create a HTTP alias(eg. Test) in the Visual Adminsitrator pointing to the file location (eg: c:\Test\files).
    3. Set the linkToURL reference property to http://<<servername>>:50000/Test/<<XML file name>>
    For creating the HTTP alias refer to the blog "Creating an HTTP Alias in WAS"
    /people/renjith.andrews/blog/2005/03/31/creating-an-http-alias-in-was
    Hope this solves your problem.
    regards
    Ravi

  • How to find path for an OA page

    Dear All,
    I need to modify a seeded page in OA fmwk. for which I am unable to get its physical location in the directory structure for its CO and related java and class files.
    This page is regarding the Purchase Order . Also when I navigate to this page, the URL that appears in the address bar is : "http://supplierapt.jcpenney.com:15600/OA_HTML/OA.jsp?akRegionCode=POS_VPO_MAIN_PAGE&akRegionApplicationId=177&SearchType=Simple&menu=Y&dbc=entfnl20_fnuat2&transactionid=1688843644" .
    Can somebody please let me know what is the way to find that particular page in directory.
    Please help!
    Thanks a lot

    About this page functionality was not available in FWK 5.7
    so you will not see the link.
    Now coming to your query, if you are on 5.7, then from the url pick the ak_region_code and log on to apps using AK Developer responsibility.
    Query for the region with the region code that you got from the URL in the Regions form.
    You will find the page metadata in AK Dictionary.
    Thanks
    Tapash

  • To find path for T.code in SPRO

    How to find path in SPRO  for T  code OMJX  and how to set default setting (user should be able to change if required ) for certain fields in MIGO for example -in excise tab - part 1 entry only which are not in personal setting.

    Hi,
    Go the Menu Path in SPRO
    Addition information>Display key>IMG activity the Last four alphabets always correspond to the transaction
    Customising PATH is MMIM>Settings for Enjoy transactions>Settings for Goods Movt MIGO->Field selection for MIGO
    regards,
    Lalita

  • How to find out web-inf path from the physical drive?

    How to find out web-inf path from the physical drive?
    I have some user profiles in web-inf directory.SO I want to know the path from root directory like
    d:/program files/allaire/jrun/appname/web-inf/profiles/username like that.
    Presently I am able to get the path upto the application directory and from that I am concatinationg web-inf/profiles/username .
    But it is giving problems when it is deployed under unix or linux.Because web-inf there it treats as WEB_INF
    SO I want to get the path of web-inf directory with out hard coding.
    Thanku

    String path = application.getRealPath("/WEB-INF/profiles/username");
    Note sure why you need this, but you don't need the real path to read the file - you can get an InputStream using the relative path. See ServletContext getResource() and getResourceAsStream().

  • How to find the physical path of the ASM disks?

    I am in a dilemma on how to find out the physical path of the ASM disks. I tried the following query, but as you can see it is not providing me the physical path of the LUN. This is a 2 node 10.2.0.4 RAC Cluster using asmlib package.
    col name format a20
    col path format a20
    col label format a20
    select name, path, label from v$asm_disk;
    NAME PATH LABEL
    ORCL:ASM103 ASM103
    ORCL:ASM104 ASM104
    ORCL:ASM117 ASM117
    ASM101 ORCL:ASM101 ASM101
    ASM102 ORCL:ASM102 ASM102
    ASM105 ORCL:ASM105 ASM105
    ASM106 ORCL:ASM106 ASM106
    ASM107 ORCL:ASM107 ASM107
    ASM108 ORCL:ASM108 ASM108
    ASM109 ORCL:ASM109 ASM109
    ASM110 ORCL:ASM110 ASM110
    NAME PATH LABEL
    ASM111 ORCL:ASM111 ASM111
    ASM112 ORCL:ASM112 ASM112
    ASM113 ORCL:ASM113 ASM113
    ASM114 ORCL:ASM114 ASM114
    ASM115 ORCL:ASM115 ASM115
    ASM118 ORCL:ASM118 ASM118
    ASM119 ORCL:ASM119 ASM119
    ASM120 ORCL:ASM120 ASM120
    ASM121 ORCL:ASM121 ASM121
    ASM122 ORCL:ASM122 ASM122
    ASM123 ORCL:ASM123 ASM123
    NAME PATH LABEL
    ASM124 ORCL:ASM124 ASM124
    ASM125 ORCL:ASM125 ASM125
    ASM126 ORCL:ASM126 ASM126
    ASM127 ORCL:ASM127 ASM127
    ASM302 ORCL:ASM302 ASM302
    ASM303 ORCL:ASM303 ASM303
    ASM304 ORCL:ASM304 ASM304
    ASM305 ORCL:ASM305 ASM305
    ASM306 ORCL:ASM306 ASM306
    ASM307 ORCL:ASM307 ASM307
    32 rows selected.
    Any help will be appreciated.
    --MM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    hi
    use the following linux command as root:
    $oracleasm listdisks
    hth

  • How To Find Oracle Home Directory Path...

    Hello,
    I am working on deployment of java web service on Oracle Application Server(LINUX) 10g, EBS - R12.
    I am working on other system and i want to deploy web service remotely on application server.
    And i am not getting the oracle home directory path. I want to find the home directory path remotely.
    so suggest me how to find out path of that.
    or weather i have to install jdevloper on server system and than i have to deploy it,
    or any other alternative way is available.
    Reply as soon as possible......

    Thanks for your reply.
    It's precisely the registry key which got tampered, and there's no ORACLE_HOME environmental variable(Or that too is tampered)
    Now,how to set it to one of the Oracle home directories?
    Regards,
    Bhagat
    !!!!!!!!!!!!!!!!!!!!

  • How to find PG.xml file name and path associated with a FUNCTION

    Hi,
    I am having a function:IRC_VIS_HOME_PAGE with Web HTML value as below:
    OA.jsp?akRegionCode=IRC_VIS_HOME_PAGE&akRegionApplicationId=800&OAPB=IRC_BRAND
    How to find PG.xml file name and path assoicated with above funtion.
    Thanks,
    ashok

    Ashok,
    Function IRC_VIS_HOME_PAGE will have 2 parameter defined for it which are OASF and OAHP where
    OASF=<SelectedFunctionName> - this tells the Framework to select this function in the given "Home Page" menu context.
    OAHP=<HomePageMenuName> - this is used ONLY with the OASF parameter, and it is used to establish the current menu context. It should point to a "Home Page" menu.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to find out import & export path for object migration between D Q & P?

    Hi guys!
    Is there a way, how to find out export and import path for object transport on XI?
    Thanx!
    Olian

    Hi,
    Have a look at these links.
    When we do an export of the IR or the ID Oblects, a typical path at which it gets exported in the XI Server is as follow:
    For IR Objects:
    “C:\usr\sap\PI1\SYS\global\xi\repository_server\export “
    For ID Objects:
    "C:\usr\sap\PI1\SYS\global\xi\directory_server\export"
    Now in case you need to import the ".tpz" that you have.... You need to place it in the path mentioned below and u will be able to do import it from IR or ID...
    For IR Objects:
    “C:\usr\sap\PI1\SYS\global\xi\repository_server\import “
    For ID Objects:
    "C:\usr\sap\PI1\SYS\global\xi\directory_server\import"
    File Level transport in sap xi
    Every SLD related transport details are explained here
    Regarding transport of SLD objects
    https://service.sap.com/~sapdownload/011000358700001684302005E/HowToSLDandXI.pdf
    Regarding transport of XI objects
    http://help.sap.com/saphelp_nw04/helpdata/en/93/a3a74046033913e10000000a155106/content.htm
    Regards,
    Akshay Jamgaonkar.
    Reward points if find useful.
    Message was edited by:
            Akshay Jamgaonkar
    Message was edited by:
            Akshay Jamgaonkar

Maybe you are looking for

  • How do I upload audio books and music at the same time

    I like listening to Audio Books as well as music but everytime I upload any music it deletes the audio books and when I upload audio books it deletes the music. How do I keep both on my iPhone without the other being deleted. Cheers

  • Using Firefox, I am unable to do my microsoft windows updates, please help!

    I just downloaded Firefox, and I am unable to do my Microsoft updates, please help! == This happened == Every time Firefox opened == I downloaded Firefox today

  • Activities linked to cases

    Hello , We have requirement wherein we need to get all those cases with activities linked to them. Is there anyway to read the activities linked to cases . There is a BAPI which gives the details , but that is only for one case at a time. Is there a

  • The new and old imac G5

    hey i just want to know what the difference is between the new and the old imac G5.. it seems that the new one came out after a few days i bought the old one.. but why is new one so inexpensive? oh and also.. i want to buy some extra ram from apple s

  • PS Layers getting renamed after pasting (PROBLEM!!!)

    I am an experienced FCP user, but for some reason this is just beyond my FCP or PS knowledge. I have a .psd file that is imported into FCP, i double click the psd file, then select all the layers, then paste them into a new sequence. The layers show