JFileChooser for selecting directory?

Hi,
Are there any better alternative than JFileChooser if I want the user to be able to select a path only, not the filename?
How could I do it if I necessarily have to use the JFileChooser? The user shall not select any file, only a directory...
Regards,
Anders

Thanks, that helped!
How could I loop through this directory (this level only, not subfolders), and get a list of all filename of a certain suffix?
/Anders

Similar Messages

  • Using JFileChooser to select directory only

    Hi. I am using JFileChooser to let the user to select the directory to save some files into the user-selected directory. I set the JFileChooser to show only directory and not files. Below show part of my code:
    private JFileChooser chooser = new JFileChooser();
    chooser.setFileHidingEnabled(true);
    chooser.setMultiSelectionEnabled(false);
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
         chooser.setDialogType(JFileChooser.OPEN_DIALOG);
    int state = chooser.showDialog(frame, "Select Directory");
    if (state == JFileChooser.APPROVE_OPTION )
    file = chooser.getCurrentDirectory();
    However, the File reference that i get is not the user-selected directory. Please help.
    Thank you.

    Hi,
    i found that if user writes in the text field of save dialog name of the file(but application needs directory), getCurrentDirectory() returns correct directory. but if user chooses directory, getCurrentDirectory() returns parent directory but getSelectedFile() returns correct one, so i suggest something like this(it's nasty but it works [i hope;])
    JFileChooser dirChooser = new JFileChooser("");
    dirChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    if (dirChooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION)
    java.io.File curDir = dirChooser.getSelectedFile().isDirectory()?dirChooser.getSelectedFile():dirChooser.getCurrentDirectory();

  • JFileChooser for selecting a directory !!

    Hi,
    here's a question for u. I am using a JFileChooser with an "Open" dialog for
    choosing a directory by
    JFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY). Now it
    works fine, except when i double click on a directory, which sets the
    directory name in the "File Name" text box, now if I press "Open", it does
    nothing, coz it cannot find that directory in this directory as it is
    already in that directory!!
    The way to make it work is to clear the "File Name" box and then press
    "Open", which is very unprofessional and no dumb user will think of doing
    that.
    What feel is that the only way to do this is to be actually able to
    access/modify the Open dialog box, which as far as I know, there is no way
    as it is handled by the JVM itself.
    Thanks for ur consideration.
    P. Cheema

    There are several problems with choosing directories from the JFileChooser, (I won't go into them here). I have written the following class to choose directories. I have only tested this some on windows, but it could be a good starting point for others.
    import javax.swing.*;
    import java.io.*;
    import javax.swing.plaf.*;
    import javax.swing.plaf.basic.*;
    public class DirectoryChooser extends JFileChooser {
        public DirectoryChooser(File startDir) {
            super(startDir);
            this.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        public File getSelectedFile() {
            File    file    = super.getSelectedFile();
            if (file == null) {
                return file;
            String  dirName = super.getSelectedFile().getAbsolutePath();
            String  fileSep = System.getProperty("file.separator", "\\");
            if (dirName.endsWith(fileSep + ".")) {
                dirName = dirName.substring(0, dirName.length() - 2);
                file    = new File(dirName);
            return file;
        public void setCurrentDirectory(File file) {
            // Let the action take place, then override the 'Name' field.
            // This is equivalent to the user typing "." in the name field.
            super.setCurrentDirectory(file);
            FileChooserUI ui = getUI();
            if (ui instanceof BasicFileChooserUI) {
                ((BasicFileChooserUI)ui).setFileName(".");
    [\code]

  • Browse button for selecting directory

    Hello All,
    I need to put a browse button in my jsp so that the user can select the directory where a file can be saved.
    How do I put this?
    <INPUT TYPE="FILE" NAME="fffile">
    This just gives me a open dialog.
    I need one which will give me the directory selected in the text box.
    Thanks in advance,
    Arun

    You can't. If you provide a link to a file, then when the browser gets that file, then it may prompt the user to save it or open it, depending on the file type, the browser's capabilities and the browser's settings.
    If you want to force a file to be downloaded, you can do one of two things:
    1) Tell the user to hold the shift key down when clicking a link, which prompts to "save link as..."
    2) Use a script or servlet or something to get the file for the link clicked on and change the headers to include:
    Content-disposition: attachment; filename=theFileName.ext
    which should also for the browser to save the file.
    But there's no way to select a directory to save in before hand.

  • Problem using JFileChooser to select a destination directory

    If you set JFileChooser to DIRECTORIES_ONLY, a user has to single click on the desired directory and click on the approveButton. This works just fine - you get the user's desired directory using getSelectedFile().
    e.g. /home/joeuser/docs
    But if the user double-clicks on their desired directory (a common user practice), the directory is opened AND the directory name is stuck in the File Name: field. If they now click on the approveButton, the returned selected directory is the user's desired directory PLUS the name of the directory again. Not what the user intended.
    e.g. /home/joeuser/docs/docs
    Now, when you keep the File Name: field from being filled in when the user double-clicks on a directory, you have encounter another problem. The approveButton will not activate unless there is something in the File Name: field!
    Does anybody have a solution for the approveButton working with an empty File Name: field?
    Thanks,
    Scott

    I had the same problem. Gave up with JFileChooser and made a directory chooser that only display the diectory structure in a JTree and no file stuff at all.
    Source: http://www.msticky.freeserve.co.uk/JDialog_directoryChooser.java
    to use it; String selectedDirPath=JDialog_directoryChooser.choose(stringTitle, stringInitialSelectedPath)
    returns the selected directory path or null if none selected.
    To make it work alone you'll need to remove my RRException class. If you want to see it in use first download noname.jar from http://www.msticky.freeserve.co.uk
    ps. my site needs testing
    thanks, sticky

  • Error: Select directory for export- ERP integrator

    Hi,
    I try to export member mappings from ERP integrator 11.1.2.1.501. It Showing the error, "Error: Select directory for export".
    Which directory should be selected here.
    Pls anyone give me a solution to solve this issue.
    Thanks
    Edited by: 3088 on Jun 19, 2012 9:33 PM

    You can choose a directory local to the ERPi server in the environment.

  • C# compiling error: 'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)

    Hello experts,
    I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
            string tempFileName = fileName;
            int count = 1;
            while (allFiles.Contains(tempFileName ))
                tempFileName = String.Format("{0} ({1})", fileName, count++); 
            output = Path.Combine(folderPath, tempFileName );
            string fullPath=output + ".xml";
    However, it gives the following compilation errors
    for the Select and Contain methods respectively.:
    'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
    (are you missing a using directive or an assembly reference?)
    'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
    found (are you missing a using directive or an assembly reference?)
    I googled on these errors, and people suggested to add using System.Linq;
    I did, but the errors persist. 
    Any help and information is greatly appreciated.
    P. S. Here are the using clauses I have:
    using System;
    using System.Data;
    using System.Windows.Forms;
    using System.IO;
    using System.Collections.Generic;
    using System.Text;
    using System.Linq;

    Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look 
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    namespace consAppFileManipulation
    class Program
    static void Main(string[] args)
    string fullPath = @"c:\temp\trace.log";
    string folderPath = @"c:\temp\";
    string fileName = "trace.log";
    string output = "";
    string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
    string extension = Path.GetExtension(fullPath);
    string path = Path.GetDirectoryName(fullPath);
    string newFullPath = fullPath;
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
    string tempFileName = fileName;
    int count = 1;
    //THIS IS AN INFINITE LOOP
    while (allFiles.Contains(fileNameOnly))
    tempFileName = String.Format("{0} ({1})", fileName, count++);
    //THIS CODE IS NEVER REACHED
    output = Path.Combine(folderPath, tempFileName);
    fullPath = output + ".xml";
    //string fullPath = output + ".xml";
    UML, then code

  • When I try to use the internal hard drive as a scratch disk I get this error "unable to set scratch disk- the selected directory is on write protect or non-writable media.  Any ideas on how to fix this.  It only happens in fcp.

    When I try to use the internal hard drive as a scratch disk I get this error "unable to set scratch disk- the selected directory is on write protect or non-writable media.  Any ideas on how to fix this.  It only happens in fcp.

    By internal, I assume you're referring to your systems (boot) drive. Is it, by chance, a partitioned dive?
    Also…although many people successfully use their systems drives as scratch disks, over time you'll have better results using a dedicated drive for your media.
    Good luck.
    Russ

  • How to select directory path in a selection screen

    Hi ,
    We can select a file path using the below statement :
    DATA : P_FILE  TYPE RLGRAP-FILENAME.
    But how can the similar be achieved for a directory, that is if one wants to select a folder.
    Folder path can be retrieved from the function : "TMP_GUI_BROWSE_FOR_FOLDER" but this doesnt give us the privilege of displaying the path selected in a parameter form as is with the file type.
    Any kind of help would be apprecialble.
    Thanks!!!!

    Hi,
        Try with below Method
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS : p_file LIKE rlgrap-filename MODIF ID ccc.
    SELECTION-SCREEN END OF BLOCK b2.
    *     AT SELECTION SCREEEN                                               *
    AT SELECTION-SCREEN ON VALUE-REQUEST  FOR p_file.
      PERFORM f4_filename.
    AT SELECTION-SCREEN ON p_file.
      IF p_file IS INITIAL.
        MESSAGE 'Please fill the path' TYPE 'E'.
      ENDIF.
    *     START OF SELECTION                                              *
    START-OF-SELECTION.
    *&      Form  F4_FILENAME
    *       Get the file from presenation server
    FORM f4_filename .
      DATA : lit_filetable TYPE filetable,
             lw_rc TYPE i.
    *  Get file from presentation system
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Find File'                 "#EC NOTEXT
    *    DEFAULT_EXTENSION       =
    *    DEFAULT_FILENAME        =
          file_filter             = '*.*'
          initial_directory       = 'C:\'
    *    MULTISELECTION          =
    *    WITH_ENCODING           =
        CHANGING
          file_table              = lit_filetable
          rc                      = lw_rc
    *    USER_ACTION             =
    *    FILE_ENCODING           =
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *  Read file name into variable
      READ TABLE lit_filetable INTO p_file INDEX 1.
    ENDFORM.                    " F4_FILENAME
    Regards
    Bala Krishna

  • Column Header for Select AS kind of query

    Hi,
    I wish to write a csv file by using the odisqlunload function. I have wrote the funtion as :
    OdiSqlUnload "-FILE=#FILE_PATH/#FILE_NAME" "-DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%>" "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=VARIABLE" "-FIELD_SEP=," "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1" "-FETCH_SIZE=1000" "-QUERY=SELECT RPAD(CI_FT_GL.GL_ACCT, 31, ' '),LPAD(CASE WHEN CI_FT.CURRENCY_CD != CI_FT_GL_EXT.DIVISION_CURCY_CD THEN sum(CI_FT_GL_EXT.DIVISION_AMT) ELSE sum(CI_FT_GL.AMOUNT) END,17,' '),' ',RPAD(CI_DST_CD_CHAR.CHAR_VAL, 25, ' '),RPAD(CI_DST_CD_CHAR.DST_ID, 8, ' '),'RMB ',' ',RPAD(to_char(sysdate, 'YYYYMMDD'), 8, ' ') FROM CI_DST_CD_CHAR CI_DST_CD_CHAR,CI_FT CI_FT,CI_FT_GL CI_FT_GL,CI_FT_GL_EXT CI_FT_GL_EXT where (CI_FT.FT_ID = CI_FT_GL.FT_ID) AND (CI_FT_GL.FT_ID = CI_FT_GL_EXT.FT_ID(+)) AND CI_FT_GL.GL_SEQ_NBR = CI_FT_GL_EXT.GL_SEQ_NBR(+) AND (CI_FT_GL.DST_ID = CI_DST_CD_CHAR.DST_ID) AND (CI_DST_CD_CHAR.CHAR_TYPE_CD = 'DTLREF1') AND (trim(CI_FT_GL.GL_ACCT) is not null) AND (CI_FT.XFER_TO_GL_DT is null) AND (CI_FT.GL_DISTRIB_STATUS in ('G','M')) AND (trunc(CI_FT.SCHED_DISTRIB_DT) <= trunc(sysdate)) AND CI_FT.CIS_DIVISION = '#DIVISION' GROUP BY CI_FT_GL.GL_ACCT,CI_DST_CD_CHAR.CHAR_VAL,CI_DST_CD_CHAR.DST_ID,CI_FT.CURRENCY_CD,CI_FT_GL_EXT.DIVISION_CURCY_CD"
    Then i used a jython code to generate headers. Bcoz the OdiSqlUnload does not generate headers. But the jython code is not useful when we have sql statements lik 'Select AS' :
    SELECT RPAD(CI_FT_GL.GL_ACCT, 31, ' ') AS GL_ACCT,
    LPAD(CASE WHEN CI_FT.CURRENCY_CD != CI_FT_GL_EXT.DIVISION_CURCY_CD THEN sum(CI_FT_GL_EXT.DIVISION_AMT) ELSE sum(CI_FT_GL.AMOUNT) END,17,' ') AS GL_AMOUNT,
    My Jython code is:
    import string
    import java.sql as sql
    import java.lang as lang
    import re
    sourceConnection = odiRef.getJDBCConnection("SRC")
    output_write=open('d:/Bijal/output1.csv','r+')
    myStmt = sourceConnection.createStatement()
    my_query = "SELECT RPAD(CI_FT_GL.GL_ACCT, 31, ' ') AS GL_ACCT,
    LPAD(CASE WHEN CI_FT.CURRENCY_CD != CI_FT_GL_EXT.DIVISION_CURCY_CD THEN sum(CI_FT_GL_EXT.DIVISION_AMT) ELSE sum(CI_FT_GL.AMOUNT) END,17,' ') AS GL_AMOUNT,
    ' ' AS BLANK1,
    RPAD(CI_DST_CD_CHAR.CHAR_VAL, 25, ' ')AS DESCR,
    RPAD(CI_DST_CD_CHAR.DST_ID, 8, ' ')AS DST_ID,
    'RMB ' Currency_Cd,
    ' ' AS BLANK2,
    RPAD(to_char(sysdate, 'YYYYMMDD'), 8, ' ') AS DT_OF_TXN
    FROM CI_DST_CD_CHAR CI_DST_CD_CHAR,CI_FT CI_FT,CI_FT_GL CI_FT_GL,CI_FT_GL_EXT CI_FT_GL_EXT
    where (CI_FT.FT_ID = CI_FT_GL.FT_ID) AND (CI_FT_GL.FT_ID = CI_FT_GL_EXT.FT_ID(+)) AND
    CI_FT_GL.GL_SEQ_NBR = CI_FT_GL_EXT.GL_SEQ_NBR(+) AND (CI_FT_GL.DST_ID = CI_DST_CD_CHAR.DST_ID)
    AND (CI_DST_CD_CHAR.CHAR_TYPE_CD = 'DTLREF1') AND (trim(CI_FT_GL.GL_ACCT) is not null)
    AND (CI_FT.XFER_TO_GL_DT is null) AND (CI_FT.GL_DISTRIB_STATUS in ('G','M')) AND
    (trunc(CI_FT.SCHED_DISTRIB_DT) <= trunc(sysdate)) AND CI_FT.CIS_DIVISION = 'MF'
    GROUP BY CI_FT_GL.GL_ACCT,
    CI_DST_CD_CHAR.CHAR_VAL,
    CI_DST_CD_CHAR.DST_ID,
    CI_FT.CURRENCY_CD,
    CI_FT_GL_EXT.DIVISION_CURCY_CD"
    my_query=my_query.upper()
    if string.find(my_query, '*') > 0:
    myRs = myStmt.executeQuery(my_query)
    md=myRs.getMetaData()
    collect=[]
    i=1
    while (i <= md.getColumnCount()):
    collect.append(md.getColumnName(i))
    i += 1
    header=','.join(map(string.strip, collect))
    elif string.find(my_query,'||') > 0:
    header = my_query[7:string.find(my_query, 'FROM')].replace("||','||",',')
    else:
    header = my_query[7:string.find(my_query, 'FROM')]
    print header
    old=output_write.read()
    output_write.seek(0)
    output_write.write (header+'\n'+old)
    sourceConnection.close()
    output_write.close()
    But it does not populate for Select As statements and throws error lik:
    'mismatched character \'\\n\' expecting \'"\'', ('<string>', 8, 62, 'my_query = "SELECT RPAD(CI_FT_GL.GL_ACCT, 31, \' \') AS GL_ACCT,\n'))
    Plz help me get headers in my output file :)

    Solution1:
    Still you can achieve this by using sys_connect_by_path ( if you know the use of it) to generate header. below link can help with another approach.
    http://www.business-intelligence-quotient.com/?p=546
    Solution2:
    You need to create one file (header= true )with interface as suggested by sutirtha. Then you can copy (odifilecopy) this file to another directory with dynamic name (inside variable) and dynamic path. In this interface keep the truncate option to true so that everytime data wont be appended to the end of file. After reversing the file change the column name Manually from C1 to your ACTUAL_COL_NAME in file. Because ODI always generate the column names using C1,C2,C3 ....
    The only risk in second approach is that if someone will delete the file then you will get error. For this you need to create a temp table in ODI with all column-name (header in file). then using above jython code or sys_connect_by_path (select * from temp_table), you can generate the header easily. Now this file will be generated dynamically and can be used by the interface. So even if someone will delete the file you can generate it during run time.
    Thanks.

  • Select Directory 'Not Responding' - bug report

    Hi,
    I was editing a step and realized that I needed to add another search directory.
    After choosing 'Select Directory' and then 'Add...' TestStand appears to lock up.
    Actually it has not really locked up, but as Filemon shows, is iterating through every directory.
    After 15 minutes it finally allowed user interaction and I was able to drill down into the next folder.
    However the response was still sluggish each time I opened up a new folder in my attempt to reach the final directory.
    [I am still trying to get there.]
    So there are times when the Select Directory function gives an abnormal behavior.
    Ronnie
    Message Edited by Believer on 09-29-2009 01:29 PM
    TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009

    Richard,
    No, I wasn't adding C:\ to the list. However, when I 'Add...' a directory, the dialog box begins at C:\Documents and Settings\All Users\Documents\National Instruments, and I then went straight to C:\ in order to then get to Program Files\IVI etc.
    I agree that searches would take awhile if I had selected C:\ but I am simply trying to Add a directory.
    My point was that TestStand should not be searching directories while I am just trying to add a directory to the search path.
    The graphic above shows for sure that TestStand is scanning through directory structures for some reason while I am trying to do this.
    This to me is odd. Why should it scan at this point?
    The Search Subdirectories check box is not valid at this time because I am adding a new directory (see the above graphic).
    As it happens I have not been able to reproduce the behavior I mentioned above - although it has happened to me once before.
    Thanks for your help,
    Ronnie
    TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009

  • JFileChooser for v1.3 and v1.4 different?

    Hi..
    I recently installed JDK v1.4 for running this particular program that I'll be working on and found that I can't seem to get the display that is supposedly to be there (was working properly when using version 1.3)
    So was wondering if there's anyone who know what's the problem with this? Is there a different between the JFileChooser or something between 1.3 and 1.4 that they can't retrieve the file in the same way when i run the program? (i.e in 1.3, it will open up a file chooser dialog straight from the working directory as it is suppose to be where as it opens the file chooser from the default directory my document, in version 1.4)
    please help if anyone has any idea. Thanks!
    regards,
    yj

    I "think" I'm having the same problem as you are, but I might be wrong.
    What I want to do is start my JFileChooser in a specified directory.
    I construct my object like this...
    JFileChooser chooser = new JFileChooser(".." + File.separator);
    File cDir = chooser.getCurrentDirectory();
    System.err.println("cDir:" + cDir.toString());
    The code above SHOULD start the JFileChooser in the directory ABOVE the directory that I ran my code from. However, not matter what string I put in the constructor, it always starts me at my WINNT/Profiles/troccola/Personal directory.
    I read that the directory path passed into the constructor should be relative to the directory that the application was run from. This is what I'm using
    new JFileChooser(".." + File.separator);
    One more note.
    The getCurrentDirectory returns the directory that you would expect. That is, it returns the directory 1 level above the directory that the application was run from. However, the display is showing an entirely different tree.
    And, yes.. I've tried chooser.updateUI();
    Any other ideas?
    1.4.0-b92 on WinNT

  • Verification of prerequisites for Active Directory preparation failed

    We currently have Windows Server 2003 SBS, SP2, Domain Controller. Would like to add Windows Server 2012, Standard, 64-bit as a backup domain controller.
    "Verification of prerequisites for Active Directory preparation failed. Unable to perform Exchange schema conflict check for domain sxxxx.local.
    Exception: The RPC server is unavailable.
    Adprep could not retrieve data from the server name.xxxxx.local through Windows Managment Instrumentation (WMI).
    [User Action]
    Check the log file ADPrep.log in the C:\Windows\debug\adprep\logs\20130417103902-test directory for possible cause of failure."
    What the log says is really:
    "Adprep encountered a Win32 error. Error code: 0x6ba Error messa The RPC server is unavailable."
    Can anyone has similar experience shred some lights to troubleshoot this? Have reviewed
    other links that have similar probems but that doesn't help. 
    Many Thanks!

    Of course I CANNOT remove Symnatec as Meinolf suggests. That would be out of my mind!! I tried to stop all their services though which doesn't help. I know this has nothing to do with Symantec. Here comes another test, the final one:
    Test 8
    This article is really good as it concludes very thoroughly about the problems about "800706BA - RPC Server Is Unavailable" and other WMI query issues:
    http://goo dot gl/l2iha
    I started looking at he ISA 2004 on our SBS 2003.
    Tried to disable the RPF Filter:
    a. Open Microsoft Internet Security and Acceleration Server 2004
    b. Go to Configuration > Add-in and location RPC Filter on the right side, right-click on it and select Properties, uncheck 'Enable this filter'
    c. Hit Apply....
    d. Now I go back to Windows 7 and test the WMI query.
    The result: it WORKS! 
    e. Next, I tried that on the Windows Server 2012 like so:
    c:>wmic /node:sbs2003servername computersystem list brief /format:list
    It also works!
    f. Next also on Windows Server 2012, I continued on what was left over.  I did the "Rerun prerequisites check " and no surprise - "All prerequisite checks passed successfully. Click 'Install' to begin installation"!
    Well that concludes the problem of installing Windows Server 2012 (standard) as a backup domain controller to a Windows SBS 2003 domain controller and the  troubleshooting process that finally led to a solution that solves my problem. Thanks for all
    the discussions over the web. Every bit counts!
    Well if this helps you in some way, give me some points to buy beer! I am going to have a drink with Bill, Cheers! 

  • Folder Chooser reference (which uses a tree for selection)

    is there a recommendation for a folder chooser which uses a tree for selection? all i've found so far are either:
    * 3rd party folder choosers
    * the file open dialog box of java where you use setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY);
    i can't believe there is currently no folder chooser which uses a tree for selection in standard java. so probably i didn't find it. before i write my own, i thought i'd ask.
    thanks for the help!

    No, it doesn't exist in the standard Java API. What's wrong with third party solutions, especially when some of them are open source? Google found quite a few.
    db

  • How can make JFileChooser set current directory to a nethood "\\host"?

    hello everyone,
    I want to set the JFileChooser's current directory to a nethood named "host".
    In the windows file dialog we can type "\\host\n" and we can explore the remote file system if which has sharing items.
    I try to use setCurrentDirectory(new File("\\\\host")), JFileChooser does't work. I must step by step explore the host in networkplaces.
    Set the host's subdirectory such as "\\\\host\\f1"can work but how can i get a remote host's subdirectory?
    thanks for any help.
    hu.

    Valerie Debonair wrote:
    1. Is there any easy way to set a an environment variable changing a working directory where a script is being executed? I 'm not so sure if i understood you exactly.
    Script can be executed/called only in/at the directory where it is. You can call script from path 'a' even if script's location is in the path 'b' , but you can't execute script with something like $@/dir1/dir2/myscript.sql if the script is realy in /dir1/myscript.sql .
    Although for something similiar you can consider using symbolic links if you are on unix/linux.
    Environment variables can't be changed and defined from within sqlplus so you will have to define them when you are in the os's command line or related gui where you can do the same. Also you could create env variable that can hold the path to the script so when the script is called , there is no need to write the full path, only variable name.
    2. How can I view path environment?path environment.
    There is no such thing.
    There is path environment VARIABLE . You can view it's contnent by typing echo $path in linux/unix or by typing set path in windows.
    regards,
    Valeriecheers

Maybe you are looking for

  • Error while migrating from Weblogic 8.1 to 10.1.3

    Hi I am getting the below error while building the xml during migrating from Weblogic 8.1 to 10.1.3. Could anyone please suggest how to resolve the below error: Error: Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/i18n/logging/L

  • How to  Populate Values from ECC  to SAP SRM

    Hi Freinds, we have  two custom fields in Purchase Requisation  ( ECC ), my requirement is to  same fields i want to create in SC Item Tab, i have included in tem Tab, but now i want to populate the values from ECC  to SRM, can any give me idea how t

  • How to change homescreen in c6-00

    does any one knows how to change homescreen theme in c6-00?

  • Download none-English characters from tables

    Hi guys, I use apex 4.1.1 multilingual - with oracle xe 11g R2.. with listener 1.1.3 deployed on Glassfish 3.1.1 I have Arabic data stored in my tables. if I go to Object Browser and try to download it, I get question marks instead of the letters....

  • SAP Scripts Layout download to Excel format

    Hi Friends, I have requirement of downloading the SAP Layout to excel format when we select the Output type option.Could you please give any solutions. Regards Dinesh