How to find  full path

Hi,
how to find the directory total path where my java programm is running programatically?
thanks in advance....

hi,
Try
System.out.println("Working directory: " + new File(".").getAbsolutePath());
Anil.
Developer Technical Support
Sun Microsystems Inc,
http://www.sun.com/developers/support

Similar Messages

  • HOW TO FIND MENU PATH FOR A TCODE

    PLZ TELL ME HOW TO FIND MENU PATH FOR A TCODE .
    I HAVE MADE A MENU ENHANCEMENT  WITH TCODE +DW2.
    IT MENU PATH IS NOT TRACEABLE.

    Hi Madan,
    It is in the transaction code <b>S001</b>.
    Check my previous post on this.
    It is not listed on the SAP Menu. Thats why SEARCH_SAP_MENU returns nothing...
    <b>Go to the Initial Screen and then type /n in the TCODE.
    From there now type S001 to go to transaction S001.</b>
    The other ways do not work. Like combining both in a single step : "/ns001".

  • How to find a path in Application server?

    Hi,
    I have a reqirement that i need to download the original document which is attached in the DIR links for each line item in the PO.
    Say for Eg. user is uploading the original document in CV03n.
    Through program i have to download it and save it in local desktop.
    But as per my concern when user uploads that document in CV03N,  it should get updated in application server.
    I wants to know how can i find that path through the document got updated in AL11.
    Please let me know if you have any idea on this.
    Also please let me know if my question is not clear.
    Regards,
    Prabu

    Hi Prabu,
    It depends on how DMS is implemented in your place.
    If DMS is implemented along with CONTENT SERVER, then the actual document uploaded is stored in CONTENT SERVER and only a link is saved in SAP DB and whenever you refer to this link the image is being retrieved and displayed.
    If you dont have content server then the uploaded documents are stored in your application server only. Generally the big companies which implement DMS do have a content server otherwise DB size will grow enormously in no time.
    Once you check out the basics of ur requirement, then search through FM's available related to DMS.
    Hope this answer helps.
    Regards,
    Lakshmi Narayana

  • How to get full path of indesign document as well as picture path.

    Hi all,
    I am working in InDesign CS4 plugins. and I have two quetions,
    1) How can we get the indesign document full path. I am able only to get the document name but i want the full path of it.
    2) How can we get the selected picture path also. I am able only to get its name.
    Please let me know if any one have idea of  it.
    Regards,
    Jitendra Kumar Singh

    //to get full path of document, works for both mac and pc
    IDocument *document = Utils<ILayoutUIUtils>()->GetFrontDocument();
    IDataBase* theDb = ::GetDataBase(document);
    const IDFile* sysFile = theDb->GetSysFile();
    InterfacePtr<ICoreFilename> cfn((ICoreFilename*)::CreateObject(kCoreFilenameBoss, IID_ICOREFILENAME));
    if(cfn != NULL){     if(cfn->Initialize(sysFile)
    == 0){
              PMString fulldocumentnameandpath = FileUtils::SysFileToPMString(*sysFile);
    Hope this helps,
    Liz Patten

  • How to find Brows() path?

    I am working with flash.net.FileReference, I am using the brows function, and I know how to find the chosen file name, but I need the whole path, now how can I do that?

    So I can use images from my user machine directly insteed of
    uploading/downloading them.
    2009/8/24 p_m_williams <[email protected]>
    This information is not available on FileReference. As far as I know it
    is for security reasons. What do you need the path for?
    >

  • How to find Full time & Part time positions in system.

    I am trying to create a NEW HIRE using pa40. I want to first hire him as Full time(FT)  and then convert him to Part time(PT).
    I understand that when I convert him to PT, I need a different PT position.
    My question is how to find out the FT position number and PT position number created in the system. I want to enter the position number in IT0000
    PERSK = 01 (FT)
    PERSK = 02 (PT)
    Thanks

    Hi
    I part time or full time can be defined differently depending on how each country needs to deal with full time or part time employees.
    In infotype 0007(Planned Working Time), there is a flag that indicates if the employee is parttime or not.
    For example, for Belgium there is a extra field Reg. workschedule in infotype 0007, that determines if the employee is full time, parttime, etc.
    Regards
    RMB

  • How to get full path of a file uploaded using file control on a jsp ?

    Hi all...
    I have a jsp on which i am using a file element (input type="file") to upload files present on the physical file system.. Thats working fine.. But i want to retrieve the full path of the file uploaded for further computation.
    What are the possible ways which can give me the full path ?? (e.g. "D:\data\text\Output.txt" )
    Thanks all for attending the question..
    Regards
    Prasad

    Some browsers send the full path. Some do not.
    You can not affect this in any way shape or form.
    All you can count on receiving is a filename - no path information.
    So you will have to have some other way for the user to pass along this information.
    If they are uploading to a "remote web site" they could specify a folder to put the uploaded file in.
    You could classify it and put all image files in "images" and all script files in "scripts" etc etc by default, and let the user deal with it in their own HTML.
    Hope this helps,
    evnafets

  • How to get full path using HTP.PRINT(' "input type ="file") ....

    Hello everybody,
    I am working on uploading file from page to another one using HTP package, but whenever I submit the form, it only takes the filename without the full path.
    for example :
    if i sent 'c:\dir\a.txt' , the other page receives file parameter as 'a.txt'
    the code is here
    PROCEDURE upload(appno in varchar2,wsct in varchar2) AS
    l_real_name VARCHAR2(1000);
    BEGIN
    HTP.htmlopen;
    HTP.headopen;
    HTP.title('Test Upload');
    HTP.headclose;
    HTP.bodyopen;
    HTP.header(1, 'Test Upload');
    HTP.print('<form action="https://ssltrng.uaeu.ac.ae/trng/document_api.upload1" method="get">');
    HTP.print(' File to upload: <input type="file" name="file" >
    HTP.print(' <input type="submit" value="Upload">');
    HTP.print('</form>');
    HTP.bodyclose;
    HTP.htmlclose;
    END upload;
    the other page see it as
    file is 'Water lilies.jpg'
    Thanks
    Edited by: dtabed on Mar 30, 2011 1:02 AM

    Do not understand the problem.
    The code you've posted is a PL/SQL web enabled procedure that produces a dynamic HTML page. This page contains a form. And a full URL reference to the CGI that will process the form's data.
    This is unusual - as it seems to be that the form is submitted across domains and web servers.. You usually refer to a local CGI procedure to deal with a form - no need for a fully qualified URL that includes web server and domain name.
    If the CGI procedure that receives the form is also a PL/SQL web enabled procedure, that the uploaded file will be placed in the documents table (as defined in the DAD alias) by mod_plsql, prior to the web enabled procedure being called. The documents table will contain the Mime type, file name, file contents and other details.

  • How to find full tables hierarchy in schema

    Hi,
    How to find the table hierarchy list from oracle schema by using Reference Key constraint?
    In my schema I am having many tables, approximate 4000 and from there I needs to get a single list which should be based in the Foriegn key based (Parent tables should be first then child tables)
    Regards
    Anee

    You can start with this
    select A.table_name children,
             B.TAble_name Father
    from DBA_CONSTRAINTS A,
            DBA_CONSTRAINTS B
    WHERE A.CONSTRAINT_TYPE = 'R'
         And B.Constraint_name = a.r_Constraint_name

  • How to find Application Path

    Hi
    How to get Application Path from form module (Any Built Ins)

    Hi,
    declare
    curform varchar2(100);
    begin
    curform:=get_application_property(current_form);
    end;
    hope it helps u..
    navneet jain
    [email protected]

  • How to find the path of a PDF sent for email review

    Hi everyone
    We have a problem where the path linking an email review to the original source document has been changed. The emailed comments do not prompt the user to merged the comments with the original file.
    I assume there must we some way to identify the original file path so that it can be reinstated.
    Can anyone help us find this path information?
    Thanks
    Suze

    How about:
    URL url = ClassLoader.getSystemResource("testfile.txt");
    if (url == null) {
         System.out.println("not found");
    } else {
         System.out.println(url.getPath());
    }

  • How to find complete path of a file in computer by java

    Hi frens !!
    i want to have a simple java program which takes the input file name say one.html and yields the complete path of the that file ,which is already stored somewhere in computer.
    my problem is that i am not getting the method in java ,which could do the same.i am using jdk 1.4.
    Thanks
    Allwyn

    simply PATHETIC !!!
    btw thanks for advise.The options are:
    - Search your computer manually for the file, TELL your code where it is by typing in the path.
    - Have some operating system tool (e.g. Windows Explorere) search your hard drive for you. When it finds it, TELL your code where it is by type in the path.
    - TEACH your code how to search your entire computer, all hard drives, all directories, for the file by that name.
    - Create a new file by that name, either in the 'current' directory (which it appears you alraedy have), or some other path you give it.
    - go hungry

  • How to find mounted path of Adobe Drive?

    Hello,
    I want to find out mounted path(on mac) of Adobe Drive 4 on client machine from inside of my plugin code and want to write it to some properties file. I am not able to find any API to do this.
    Can someone please help? Its urgent....
    Thanks.

    On Mac it's under "/Volumes/my_dam_server_name"

  • How to get full path in file browse item

    Hi
    I have a file item. When I submit the form and store and value in db, then the file path is stored as numbers and appended to the file name. I undestand that this is because of some wwv flow files index or something . How to get the file path? Anybody...

    For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8 and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    Changes to IE's security config can enable the path to be exposed in IE8, but I don't think it will be available via <tt>apex_application_files</tt>.
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx

  • How to get full Path using sADMBasic- StandardGetDirectoryDialog on mac

    hi,
    While implementing  a plug-in, I am using sADMBasic->StandardGetDirectoryDialog to prompt a dialog to select the folder.code is as follow-
    SPPlatformFileSpecification outResult = {NULL};
    Boolean isDirSelected = sADMBasic->StandardGetDirectoryDialog("Select folder Location", NULL, &outResult);
    In window, I am getting the fullpath in outResult.path. but in Mac ,I am getting 3 things outResult.vRefNum,outResult.parID,outResult.name.
    suppose anyone selected the desktop when dialog prompt. The outResult.name contains only the string like"a\ desktop ".And parId contains a integer no.
    But  I  want fullpath like User/Desktop. is there any way to get the fullpath from these variables?
    thanks
    DeepAlone

    Do not understand the problem.
    The code you've posted is a PL/SQL web enabled procedure that produces a dynamic HTML page. This page contains a form. And a full URL reference to the CGI that will process the form's data.
    This is unusual - as it seems to be that the form is submitted across domains and web servers.. You usually refer to a local CGI procedure to deal with a form - no need for a fully qualified URL that includes web server and domain name.
    If the CGI procedure that receives the form is also a PL/SQL web enabled procedure, that the uploaded file will be placed in the documents table (as defined in the DAD alias) by mod_plsql, prior to the web enabled procedure being called. The documents table will contain the Mime type, file name, file contents and other details.

Maybe you are looking for

  • Distorted sounds in Windows 7 32 bit

    Hi... I re-installed my system with (Dutch) Windows 7 32 bit and used the "Vista" driver CD for my SB X-fi Music card. When I play MP3 or WAV files, the quality is reasonable, however, some sounds, specially vocals, are damped by the bass-tones. When

  • Some HTML pages (JEditorPane) work in 1.4.1 but not in 1.4.0

    Is anyone aware of this problem?

  • How to connect to the USB printer

    I connect a USB printer to the USB port of my Airport Extreme.  Can someone help advise the procedure for the computers in the network to connect to the USB printer.  Thanks!

  • Make video of kenote presentation in iOS

    Is there a way to output video clips from keynote or somehow import keynote into iMovie. Thnx

  • Issues in mass data Upload

    Hi All,         Hope you all are doing fine.         I have to do master data upload for my next project. I have gone through LSMW, DX-WB, Recording etc. and now I am quite comfortable with all of these.         As i have tested these tools for maxim