Question on default directory

which method can be used if i need to know what is the default directory of a program? e.g.C:\Program Files\JBuilder\

You could try :
String deflt = new File(".").getAbsolutePath();The dot represents the current directory.

Similar Messages

  • How can I specify a default directory on my external drive, for iPhone photos to be imported to on Macbook Air?

    I use both a PC as well as my Macbook Air and when I sync my iPhone with my PC (I connect the phone to PC) my phone (or is it my computer)? knows to import my photos and videos to a specific directory/folder on my external hard drive (I am able to tell my PC which folder to import my photos and videos to). For example, it imports all photos and videos to the external drive and organises the photos and videos by date (it creates a separate folder for each date the photos/videos were taken; I had to tell my PC to import to the default directory (external drive) when I did this for the first time, and it now creates a new folder for each date which is useful for keeping photos organised, etc. 
    I'd like to be able to do the same thing, using my Macbook Air, i.e., when I connect my iPhone to the Macbook air, I want my Macbook Air to know to import my photos to my external hard drive; is this possible? I am not familiar with the photo programmes on the Macbook air, but to be honest, I don't want to use them for this; I just want my photos and videos on my iPhone to import to the same folder when I use my Macbook air to sync, as when I use my PC to sync  (I use my PC at work and have my Macbook at home). I'd like to be able to sync my phone when at home and not have to wait till I get to work, etc.
    Many thanks for any help you can provide...

    Yes there are many, but the question is why won't the new folder create on the drive?
    What format is it?
    I think you've not grasped what iPhoto is. Have a read of these
    For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.
    Though dealing with different topics, they explain some of the background and the differences between what you're looking for (file management) and what iPhoto does (photo management).

  • How do I change the "Default Directory" associated with my subscription?

    I was recently added as an administrator for a client's Azure subscription.  This has caused his account AD to be the default directory I see when I log in.  So every time I log in I have to open the Subscriptions menu and change the FILTER BY
    DIRECTORY option.  How can I make my own directory the default directory when I log in?
    Note: there was an almost identical question back in Dec 2013 and the solution was to have the other user remove you as an administrator.  The marked answer suggested the questioner read some arcane description of Azure subscriptions and Active Directory.
      I need to remain an admin for the other account and the referenced document had nothing useful to say about my problem.
    Anyway, thanks in advance for your help.

    Hi,
     Thank you for posting.
     I hope you find the following link helpful.
     http://itproguru.com/expert/2014/07/change-azure-subscriptionsgo-directly-to-a-specific-subscription-in-windows-azurestep-by-step/
    Regards,
    Nithin Rathnakar.

  • Default directory for FIle Manager

    Hi,
    I am working on file manager for my final year project. I am using jsp, Tomcat and Linux as OS.
    The question is,
    "Is there any way to authenticate users from OS(linux or windows 2000) and how can i set user home directory(e.g. home/sahsan/) to my file manager default directory"
    I really appreciate if anybody help me in this regard. I am ready to read any article,tutorial or even any book chapter for this purpose. Coding Help will be best choice ;-)
    Thank you.
    Regards,
    Syed Ahsan

    I am not sure, i am in search of the code as well. pls let me know if u come across something. i will keep u posted if i know some.........
    Riz

  • Default directory for FileRaeder

    Hi, i have a question, what is the default directory that the filereader class uses?
    I have written an application witch uses the following line:fr = new FileReader(fileName);
    i know filename is the correct name of the file because it works corretc with my other jre. But my other jre can't find it.
    Thanks for any help.
    robert

    i found out it is Thnx. I overlooked that posibility at first becausea .lnk file was starting my program.
    Thnx
    Robert

  • How do I change the "Default Directory" or default subscription when I log into the portal?

    When I login to the Windows Azure portal it redirects me to a URL like:
    https://manage.windowsazure.com/@{SomeOneElsesAccount}hotmail.onmicrosoft.com?whr=live.com#Workspaces/All/dashboard
    If I look at the URL I can see the email of a friend's account not mine.
    If I click on the Subscription drop down his account is listed as the "Default Directory" even though I no longer have access.
    How do I remove his account/subscription/directory from my account?
    How do I change my subscription as the default, so that when I login the URL is more like: https://manage.windowsazure.com/@{my email}.onmicrosoft.com#Workspaces/All/dashboard
    I have also
    asked this here...
    See the image below.  The one listed as "default directory" I no longer have access to.

    Hi Gary,
    Did you use the organizational accounts ? I guess your login account was added by "SomeOneElsesAccount" . When we used azure AD account to logging into portal, the url show the "SomeOneElsesAccount" message on the portal. If you didn't
    show other user message, I suggest you could use Microsoft account to login. Also, I suggest you read this document (http://msdn.microsoft.com/en-us/library/windowsazure/hh531793.aspx )
    firstly.
    Any question, please let me know.
    Thanks
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Default Directory for iMovie08

    My students save their work on a 4 TB NAS; at least they did until iMovie 08. Is there any way to change the default directory for iMovie08 projects and save them on our classroom server?

    RossD8 wrote:
    My students save their work on a 4 TB NAS; at least they did until iMovie 08. Is there any way to change the default directory for iMovie08 projects and save them on our classroom server?
    I have a somewhat similar question -- it seems there should be a simple way to move the "movies" folder wherever you want, but I'm afraid to even try lest I mess everything up. I bought a 250 gig external hard drive, and I want to store all my movies on that automatically, so that I can work on them both on the new laptop and on the about-to-be-ordered iMacs.
    Can anyone help?
    Thanks!!
    susan

  • Setting Default Directory When Scanning

    I have Acrobat 8 Professional. Most of what I do is scanning
    documents and I would like the documents to go into one particular
    directory or a parent directory and then allow me to choose a child
    directory.
    I have not been able to find a place to set a default
    directory.

    Thank you for your response. These forums are specific to the
    Acrobat.com website and its set of hosted services, and do not
    cover the Acrobat family of desktop products. Please visit the
    following forums for any questions related to the Acrobat family of
    desktop products:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/

  • How to change the default directory from within SQL*Plus ?

    Hello,
    I want to change the default directory directly from within SQL*Plus to be able to launch my command files with simple instructions like :
    @my_command.sql
    If I haven't launched SQL*Plus from the directory containing the file my_command.sql, how do I change the default directory to the directory of my command files ?
    I've searched through the Oracle documentation, there's no SET DEFAULTDIR or something like that. When I do a SHOW ALL, there's no variable containing the default directory.
    If you have an idea...
    regards,
    Jérôme.

    Hi Jérôme (J鲴me ?),
    You cannot directly do that, but you can use @@ instead of @ to run subscripts in the same directory as the superscript
    # head /tmp/tl30/xxx/[xyz].sql                    
    ==> /tmp/tl30/xxx/x.sql <==
    prompt call y
    @y
    prompt call z
    @@z
    quit
    ==> /tmp/tl30/xxx/y.sql <==
    prompt i am in y
    ==> /tmp/tl30/xxx/z.sql <==
    prompt i am in z
    # pwd                                             
    /root
    # sqlplus -s scott/tiger@lsc62 @/tmp/tl30/xxx/x.sql
    call y
    SP2-0310: Datei "y.sql" konnte nicht geöffnet werden
    call z
    i am in zKind regards
    Laurent Schneider
    OCM DBA

  • How to change default directory of exe file

    I have created a VI that reads a template and writes on the template and saves it to a new file. When i created to an exe file, I would like for this exe to be able to be used on any computer. As such, the directory where i will open my template will change on different computers. Hence I am having this problem of how to change my VI such that it will choose this template in a new computer and set it as its default directory.
    I understand that in my own computer, I can simple "set current values as default" so that my VI will always open this file from a particular path. But what i need help with is when i put it on another computer where the particular path would definitely be different. I tried using the config file.vi but I could not understand how it is used.
    Please assist me in this. Thanks

    Hi Aaron,
    Micorsoft suggest to use folders like UserAppData to store files for your own programs.
    Put your template in there and use GetSystemDir function to get the UserAppData path...
    Or you put the template in the program folder or one of it's subfolder (not recommended by MS) and use a relative path to load it...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • ASO - .dat file in default directory

    Hi,
    Our .dat file in the 'default' directory on our server is 209,715,200 The sys admin says we need to move it as it's too big for that directory. They do this on the BSO cubes and identify a path where the 'Storage' resides. However she doesn't see this option for ASO. Is this not possible in ASO and the .dat file must remain where it's at? Or is there an alternative method to store the .dat file somewhere else?

    You mean managing the tablespaces ? - http://docs.oracle.com/cd/E17236_01/epm.1112/eas_help/tablespc.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • **Creating default directory in failed: \logging.properties (Access is denied)**

    Hello Experts,
    i am deploying edq on weblogic.
    After deployment, when lauching the edq url getting below error on firefox.
    **Creating default directory in failed: \logging.properties (Access is denied)**
    by default, it took the path as:
    C:\oraclesw\oracle\middleware\user_projects\domains\oedq_dev_domain\servers\edqdev_server1\tmp\_WL_user\dndirector\1i3bzo\war\WEB-INF\config
    i have unzipped the config.zip into above mentioned config folder.

    When we restart the application server up and start the managed server, the deployment is in the failed status with the following message:
    We have the Memory settings on the managed server set as : -Xmx5024M –XX:MaxPermSize=256M
    <Jul 11, 2013 4:45:13 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating start task for application 'dndirector'.>
    <Jul 11, 2013 4:45:13 PM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
            at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
            at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
            at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
            at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
            Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: com.datanomic.utils.transport.TransportSignature
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            Truncated. see log file for complete stacktrace
    >
    <Jul 11, 2013 4:49:42 PM EDT> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=WebAppApplicationOverviewPage&WebAppApplicationOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3Ddndirector%2CType%3DAppDeployment%22%29.>

  • Set default directory/path for SaveAs Dialog using WPG_DOCLOAD

    Hi, im trying to set the default directory/path for the SaveAs Dialog called by wpg_docload.download_file.
    I'm not able to find where I can specify the default path.
    Is it something like "htp.p('Content-Disposition: attachment; path=:PX_OUTPUT_DIR" ?
    Thx for your help !
    Here's a part of my code
    owa_util.mime_header( NVL(mime,'application/octet'), FALSE );
    htp.p('Content-length: ' || length);
    htp.p('Content-Disposition: attachment; filename="'||substr(fileName,INSTR(fileName,'/')+1)|| '"');
    owa_util.http_header_close;
    wpg_docload.download_file( lobLoc );
    /*********************/

    I don't believe you're allowed to set the directory path in the Content-Disposition (or any other) header. More accurately, you can set path in the filename, but browsers don't pay any attention to that, they only look at only the terminal filename.
    <p>According to RFC 2183, browsers are supposed to ignore any path information sent with the filename. Even though it's dated 1997, I believe this RFC is still in effect.
    <p>This was done as a security precaution against malicious web apps that might try to download into a system directory or other dangerous place. Also, browsers (usually) allow users to specify their own default download directories. Further, even if you could specify the path, you'd have to do it for any and all filesystems (Linux, Mac HFS, Mac OSX, Windows, etc etc).

  • How to set default directory for SQL LOADER

    hi all,
    i wanted to know how can we setup a default directory for SQL LOADER if at all we can. i connot place my control and data files in local system and use them at command prompt. rather i wanted to know if we can set default directory that the loader can use. this requirement is basically to enable all the clients to upload the data placed on the server and use the loader utility.
    thanks in advance,
    Basavraj

    Ella,
    You don't say which version of SQL Developer you are using via Citrix, but just setting the SQLDEVELOPER_USER_DIR hasn't worked for a long time (see Re: SQLDEVELOPER_USER_DIR does not function anymore). Also, since version 1.5, the default for the user directory (now set via ide.user.dir as shown below) is under the user profile area (relative to %APPDATA%), which you should be able to write to, even on Citrix.
    Assuming that neither of those help, you will need to get whoever installed SQL Developer on the Citrix C: drive to modify the sqldeveloper.conf to have a line like, where the path exists for everyone who will be using the shared SQL Developer (assumes everyone has a H: drive):
    AddVMOption -Dide.user.dir=H:\sqldeveloperAn alternative (depending on how you start SQL Developer via Citrix), is to create your own shortcut to start SQL Developer with something like:
    sqldeveloper -J-Dide.user.dir="%SQLDEVELOPER_USER_DIR%"theFurryOne

  • Default directory for sql script in iSqlplus 10g

    I want to run an sql file from the url as "http://machine_name.domain:5560/isqlplus/dynamic?script=http://machine_name2.domain/myscript.sql
    ". What is the default directory to place the file myscript.sql in? Do I need to create a DAD for specifying a different directory?
    Am using Oracle 10g.
    AN

    Hi Alison,
    I tried putting the sql script on different directories on the Oracle server but the url doesnt seem to find the script at all. It gives an error "Cannot find sql script".
    I have not installed Oracle Application server 10g yet. Am only running Oracle Database 10g with iSqlplus and PL/SQL.
    AN

Maybe you are looking for