Need to browse solaris directory structure through windows (JFileChooser).

Is there any way or any external API exist through which we can access the solaris/unix directory structure from windows through JFileChooser.

johndjr wrote:
I assumed it did and then and it wasn't until after you asked that I questioned my self as to whether I knew that or I just thought I knew it. After a brief check it seems that it does
[some anecdotal evidence|http://wikis.sun.com/display/BigAdmin/Enabling+Browsing+with+Samba+in+Solaris+10+Update+4]
I lucked out this time.Nifty - thanks for the link!

Similar Messages

  • Moving in directory structure through servlet

    Hi everyone,
    I am currently using this directory structure and have 2 web applications "myweb1" and "myweb2".
    /myweb1/jsp pages
    /myweb1/WEB-INF
    /myweb1/WEB-INF/classes
    /myweb1/WEB-INF/classes/myservlet
    /myweb1/WEB-INF/lib
    /myweb2/display.jsp
    /myweb2/WEB-INF
    /myweb2/WEB-INF/classes
    /myweb2/WEB-INF/lib
    I have a servlet named "myservlet" in WEB-INF/classes directory(myweb1 application) as shown above. I have following entries in my web.xml file of "myweb1" webapplication.
    <servlet>
    <servlet-name>myservlet</servlet-name>
    <display-name>myservlet</display-name>
    <servlet-class>com.abc.servlet.myservlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>myservlet</servlet-name>
    <url-pattern>/myservlet</url-pattern>
    </servlet-mapping>
    This whole application is running fine. Now I need to forward user from "myservlet" to "display.jsp" page in myweb2 application.
    I am using this line in "myservlet" file.
    getServletConfig().getServletContext().getRequestDispatcher("../myweb2/display.jsp").forward(request, response);
    however this line is not working. Can anyone suggest me how to access display.jsp file from myservlet.
    Thanks.
    Rahul

    As long as everything is running within the same application server instance, you should be able to access both contexts. The key is using the getContext(String URI) method of the ServletContext. From the servlet in webapp1:RequestDispatchter dispatch =
        getServletContext().getContext("/webapp2").getRequestDispatcher("display.jsp");You may have to fiddle with the value in the getContext call (it should be the application context of webapp2) but you should be able to get this to work.

  • Firefox freezes when using "Save link as" or doing anything that needs to browse local file directory?

    System: Windows XP, Firefox 17.0.1.
    Firefox freezes when doing anything that needs to browse local directory such as saving file, uploading, etc....For example, can't save any image using "save link as". When attaching a file in email, whenever the browsing to other location on the hard drive will freeze firfox, which turns to "not responding"....

    We're sorry to hear that your Firefox seems to be crashing. Please perform the following steps to give us a crash report ID that helps us find out more about the cause of the crash.
    #Enter about:crashes in the Firefox location bar (that's where you enter your website names) and press Enter. You should now see a list of submitted crash reports.
    #Copy the most recent 5 report IDs that you see in the crash report window and paste them into your forum response.
    Thanks in advance for your help!
    More information and further troubleshooting steps can be found in the [[Firefox crashes]] article.

  • Map a drive from Windows 2000 to Solaris directory

    Solaris is new to me. So, please forgive me if I do not have technical terms correct. We recently installed Solaris (SunOS 5.7). Is there a way to map a drive to a Solaris directory from a Windows 2000 workstation? I tried to do a NET USE j: \\123.123.123.123\home /user:root *, and I receive the following error:
    System error 67 has occurred.
    The network name cannot be found.
    Is there something I need to do on the server to make this work? I was reading about the share command in Solaris. Is this what I need?
    Thanks in advance!
    Tim

    You will need to install Samba on your UNIX box or install Microsoft Windows Services for UNIX...
    Samba is probably easiest...both are free...

  • Need to automate odi scenario through windows

    Hi,
    i need to run an odi scenario through windows scheduler.
    Please let me know.
    Thanks,

    Try creating a BAT file with the scenario execution written for the command line. Here's an example:
    How to run ODI scenario using command prompt
    Then schedule the BAT file through Windows task Scheduler:
    http://www.iopus.com/guides/winscheduler.htm

  • Directory structure support and sluggish touch screen

    I bought a Zen X Fi2. My expectations were high since I already had a creative some years ago. (I was quite pleased with the performance and sound quality etc)
    However I am a bit dissapointed with Zen XFi2- The touch screen is not very successful. The scroll function does not work at a satisfactory level and sometimes (when I want to scroll), it makes a "selection" rather than "scrolling".
    Also it does not support browsing with directory structure. For those people (like me) who are quite used to drag and drop type of copying for mp3 files, it is really a pain to re arrange all the songs for ID3 tag information.
    I believe these two issues are software issues and can be improved by new firmware upgrade.
    I also want to take this opportunity to tell that the software (interface software) that comes with the device is totally crap- I have never seen a software that tries to control the user rather than the user controlling the software. An ideal interface software for such a device should be the one which allows user to choose the songs from any directory, drag and drop into the device.
    I was going to return my Zen however after playing around for a few days, I somewhat get used to its sluggish touch screen behaviour and accepted ID3 tag browsing (which still gives me a lot of problem) so right now I am gonna keep it.
    May be software developpers can work on touch screen improvement, adding the support for directory structure browsing (as well as ID3 tag browser) and work on interface software a bit more ?
    Thanks
    Best Regards

    This is indeed interesting because when you say "I don't have the problems you mentioned" I believe you also refer to the sensitivity of the touch screen. This makes me ask the question if my item has some problems. Since I do not have any means of cross checking this (apparently there is no other Zen XFi2 around me) may be I should ask you this question: "When you want to browse among albums for example, you wipe your finger across the screen so the screen rolls down; can you have it fluently like in an IPOD touch?- or does it not recognize immediately and you have to do it again sometimes?"
    As for the volume button- I do indeed agree. For devices like this one; having physical buttons for at least volume, mute, stop/pause is a "must"! Choosing, browsing or starting a song is not a big deal however muting, stopping or changing the volume may be needed instantly from time to time. It is very unpractical to browse for volume, find it and adjust it!
    Also may I add that for such a nice device, there should be a remote control on the headphone/earphone cable and should employ at least stop/play/mute/volume/forward/reverse buttons. I mean think about it for a while- why would you want to take use this device- apparently not to watch movies at home! You take it with you and listen to music, while cycling, jogging, skiing, roller blading etc. It is so difficult taking out the device from your pocket, browsing for volume button and turning up and down the volume (while cycling for example!) or skipping to next song with one touch!
    Cheers

  • Making a Directory Structure with JTree.

    Hello,
    Can anyone boss here help me to code to make a
    File System Directory structure through JTree?
    The outlook should be like the Windows Explorer...
    From : [email protected]

    * HarishTree.java
    * Created on September 7, 2004, 2:56 PM
    * @author 120002314
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    import java.io.File;
    import java.awt.event.ActionListener;
    import javax.swing.JToolBar;
    import java.lang.System;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import javax.swing.filechooser.FileSystemView;
    public class HarishTree {
    public static void createAndShowGUI() {
    //creating a tree with drives in the toolbar
    TreeBar bar = new TreeBar();
    JScrollPane scrollpane = new JScrollPane(bar.tree);
    JToolBar toolbar = bar.CreatingTreeBar();
    JPanel panel = new JPanel(new BorderLayout());
    panel.add(toolbar);
    // Display it all in a window and make the window appear
    JFrame.setDefaultLookAndFeelDecorated(true);
    JFrame frame = new JFrame("FileExplorer");
    frame.getContentPane().add(scrollpane, "Center");
    frame.getContentPane().add(panel,BorderLayout.NORTH);
    frame.setSize(400,600);
    frame.setVisible(true);
    frame.setResizable(false);
    public static void main(String[] args) {
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    java.lang.System.gc();
    * The methods in this class allow the JTree component to traverse
    * the file system tree and display the files and directories.
    class FileTreeModel implements TreeModel {
    // We specify the root directory when we create the model.
    protected JFile root;
    public FileTreeModel(){}
    public FileTreeModel(JFile root) { this.root = root; }
    // The model knows how to return the root object of the tree
    public Object getRoot() { return root; }
    // Tell JTree whether an object in the tree is a leaf
    public boolean isLeaf(Object node) {  return ((JFile)node).isFile(); }
    // Tell JTree how many children a node has
    public int getChildCount(Object parent) {
    String[] children = ((JFile)parent).list();
    if (children == null) return 0;
    return children.length;
    // Fetch any numbered child of a node for the JTree.
    // Our model returns File objects for all nodes in the tree. The
    // JTree displays these by calling the File.toString() method.
    public Object getChild(Object parent, int index) {
    String[] children = ((JFile)parent).list();
    if ((children == null) || (index >= children.length)) return null;
    return new JFile((JFile)parent,children[index]);
    // Figure out a child's position in its parent node.
    public int getIndexOfChild(Object parent, Object child) {
    String[] children = ((File)parent).list();
    if (children == null) return -1;
    String childname = ((File)child).getName();
    for(int i = 0; i < children.length; i++) {
    if (childname.equals(children)) return i;
    return -1;
    // This method is invoked by the JTree only for editable trees.
    // This TreeModel does not allow editing, so we do not implement
    // this method. The JTree editable property is false by default.
    public void valueForPathChanged(TreePath path, Object newvalue) {}
    // Since this is not an editable tree model, we never fire any events,
    // so we don't actually have to keep track of interested listeners
    public void addTreeModelListener(TreeModelListener l) {}
    public void removeTreeModelListener(TreeModelListener l) {}
    class TreeBar implements ActionListener{
    public JTree tree = new JTree();
    public File[] roots = File.listRoots();
    JToolBar toolbar = new JToolBar();
    public TreeBar(){
    FileTreeModel model = new FileTreeModel(new JFile(System.getProperty("user.home")));
    tree.setModel(model);
    tree.setCellRenderer(new MyRenderer());
    public JToolBar CreatingTreeBar(){
    for(int i=0;i<roots.length;i++){
    JButton button = new JButton(roots[i].getPath(),new MyRenderer().inicon);
    button.addActionListener(this);
    button.setActionCommand(roots[i].getPath());
    toolbar.add(button);
    toolbar.setFloatable(false);
    toolbar.setRollover(true);
    return(toolbar);
    public void actionPerformed(java.awt.event.ActionEvent e) {
    FileTreeModel model = new FileTreeModel(new JFile(e.getActionCommand()));
    tree.setModel(model);
    class MyRenderer extends DefaultTreeCellRenderer {
    ImageIcon inicon = createImageIcon("1.gif");
    ImageIcon exicon = createImageIcon("2.gif");
    ImageIcon leaficon = createImageIcon("3.gif");
    public ImageIcon createImageIcon(String path) {
    java.net.URL imgURL = TreeIconDemo2.class.getResource(path);
    if (imgURL != null) {
    return new ImageIcon(imgURL);
    } else {
    System.err.println("Couldn't find file: " + path);
    return null;
    public Component getTreeCellRendererComponent(
    JTree tree,
    Object value,
    boolean sel,
    boolean expanded,
    boolean leaf,
    int row,
    boolean hasFocus) {
    super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
    if (leaf){
    setIcon(leaficon);
    }else
    if(expanded)
    setIcon(exicon);
    else
    setIcon(inicon);
    return this;
    class JFile extends File{
    public JFile(String path){
    super(path);
    public JFile(File parent,String child){
    super(parent,child);
    public String toString(){
    FileSystem fs = new FileSystem();
    if(fs.isFileSystemRoot(this))
    return(this.getPath());
    else
    return(fs.getSystemDisplayName(this));
    class FileSystem extends FileSystemView{
    public File createNewFolder(File containingDir) throws java.io.IOException {
    return(this.createFileObject(containingDir,"harish"));

  • Media browser has no directory structure

    Hi,
    probably a pretty dumb question, but here's my problem:
    the media browser in PrPro CS6 worked fine untill yesterday, now it doesn't display the directory structure in the left pane anymore. I can still reach the required directories through a shortcut to the media drive on the desktop, but I want to switch easily between directories as my footage is in different places. Also, the recent directories in the menu are  missing.
    Is there some way to reset the media browser? Am I missing a simple thing?
    Thanks in advance, it'll probably be a simple solution...
    Nils

    Do I need the entire tree (see http://en.wikipedia.org/wiki/AVCHD)?
    Or do I only need CLIPINF and STREAM?
    What's in CLIPINF?  The one thing I care most is timestamp.
    Also, if I cut the mts file (making it shorter), will CPI file needs to be updated?
    Thanks!

  • How duplicate ora11 on windows to another host with different directory structure

    Hi,
    I need help.
    I want to duplicate db (11.2) running on windows from server A to Server B
    Directory structures on server A and Server B are different;
    my steps
    on server A
    1.backup database plus archivelog delete input;
    2.insert into table t values(1);
    3.commit;
    4.backup archive log all;
    On Server B
    5.copy backup and archive logs from server A to server B (c:\backup\temp)
    6.create folders C:\oracle\oradata\bamboo
    7.oradim –new –sid bamboo -- (verified service is running)
    8. created pfile.ora with param (db_name=bamboo)
    9.SET oracle_SID=bamboo
    10.sqlplus  /as sysdba
    11.startup nomount pfile='(c:\backup\temp\pfile.ora'
    12.C:\oracle\product\11.2.0\db_1\database>rman auxiliary /
    result
    ..connected to auxiliary database: SBDBT02W (DBID=186082786, not open)  --could it be the fact that I tried to execute code bellow?
    My understanding at this point I should be connected to 'bamboo' -- my new database, what steps did I miss?
    I expect
    ..connected to auxiliary database: bamboo ( not mounted)
    bellow is code that I was going to run on Server B
    RUN
      SET NEWNAME FOR DATAFILE 1 TO 'C:\oracle\oradata\bamboo\SYSTEM01.DBF';
      SET NEWNAME FOR DATAFILE 2 TO 'C:\oracle\oradata\bamboo\SYSAUX01.DBF';
      SET NEWNAME FOR DATAFILE 3 TO 'C:\oracle\oradata\bamboo\UNDOTBS01.DBF';
      SET NEWNAME FOR DATAFILE 4 TO 'C:\oracle\oradata\bamboo\USERS01.DBF';
      SET NEWNAME FOR DATAFILE 5 TO 'C:\oracle\oradata\bamboo\EXAMPLE01.DBF';
      DUPLICATE DATABASE TO bamboo
      UNTIL TIME "TO_DATE('11/24/2013 13:18:02', 'MM/DD/YYYY HH24:MI:SS')"
      BACKUP LOCATION 'C:\backup\temp'
      NOFILENAMECHECK;
    when I executed it on Server B ,I got following error
    Starting Duplicate Db at 25-NOV-13
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 11/25/2013 11:27:36
    RMAN-05500: the auxiliary database must be not mounted when issuing a DUPLICATE
    command
    I looking for steps by step instruction for duplicating db to another windows host with different directory structure.
    Thank you
    Alex

    The topic, "Duplicating a Database on a Remote Host with a Different Directory Structure" can be found at http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006672
    This information should provide you the step by step process to follow including when on Windows.
    HTH -- Mark D Powell --

  • Is there any way to specify a URL in the servlet-mapping that doesn't need to be in the directory structure?

              I migrated from WebLogic 5.1 to 7.0.2 Something I used to have set-up in 5.1 no
              longer
              works.
              I am using the weblogic.servlet.FileServlet and have the URL "/cxedocs/" mapped
              to this
              servlet. So whenever the URL http://localhost:7001/cxedocs/en_US/index.html
              is used it would use the docHome associated with the /cxedocs/ URL and then append
              the "en_US/index.html" on to it. So let's say d:\temp\en_US\index.html
              But now for WL 7.0.2 it appears that the URL also needs to be in the directory
              structure.
              So it now takes the docHome "d:\temp" adds the URL "/cxedocs/" and then appends
              the
              rest - so d:\temp\cxedocs\en_US\index.html.
              I can't require that the "cxedocs" directory be there. Is there anyway to map
              a certain URL
              without requiring it in the directory structure. I looked at virtual directory
              mapping too but
              it still seemed to require this.
              Any help would be appreciated!
              Thanks!
              -Lori
              

              I opened up a case with support on this. After some research they came back with
              that
              NO there is no way to do this. In 6.0 it was changed to follow the spec which
              restricts this.
              The URL must be part of the directory path.
              -Lori
              "Lori Ronning" <[email protected]> wrote:
              >
              >I migrated from WebLogic 5.1 to 7.0.2 Something I used to have set-up
              >in 5.1 no
              >longer
              >works.
              >
              >I am using the weblogic.servlet.FileServlet and have the URL "/cxedocs/"
              >mapped
              >to this
              >servlet. So whenever the URL http://localhost:7001/cxedocs/en_US/index.html
              >is used it would use the docHome associated with the /cxedocs/ URL and
              >then append
              >the "en_US/index.html" on to it. So let's say d:\temp\en_US\index.html
              >
              >But now for WL 7.0.2 it appears that the URL also needs to be in the
              >directory
              >structure.
              >So it now takes the docHome "d:\temp" adds the URL "/cxedocs/" and then
              >appends
              >the
              >rest - so d:\temp\cxedocs\en_US\index.html.
              >
              >I can't require that the "cxedocs" directory be there. Is there anyway
              >to map
              >a certain URL
              >without requiring it in the directory structure. I looked at virtual
              >directory
              >mapping too but
              >it still seemed to require this.
              >Any help would be appreciated!
              >Thanks!
              >-Lori
              

  • I have copied many photo's from another laptop to my Mac.  The older photo's are in directories with names that help me select what I need to view. I would like to have all my imported new photo's also bee added to the directory structure I have in Finder

    I have copied many photo's from another laptop to my Mac.  The older photo's are in directories with names that help me select what I need to view. I would like to have all my imported new photo's also bee added to the directory structure I have in Finder but my new photo's are all in iPhoto.  I want to use directories for storing and iPhoto for viewing.  Is this possible or do I need to have all my photo's in iPhoto??
    Mitch

    iPhoto is not a Photo Viewer. It's a Photo Manager and designed for looking after the files while you organise the Photos. It really works much better if you let it manage those files. If you use iPhoto you never go near those files because iPhoto is your start point for anything you want to do with your Photos - the point of the pplication.
    You can run iPhoto in Referenced mode, where it does not copy the files to the Library, but I caution you that you are making life a lot more difficult for yourself by doing that.
    How to, and some comments on why you shouldn't, are in this thread
    https://discussions.apple.com/thread/3062728?tstart=0
    Regards
    TD

  • Is there an add-on program, which assumes the directory structure of a Windows PC with subfolders?

    Hi all,
    Is there an add-on program, which assumes the directory structure of a Windows PC with subfolders?
    So that the playlists are created with all the directories and subdirectories.
    I would like the Music folder
    and all its subdirectories
    drag into iTunes.
    Then should the songs in iTunes and in the Iphone geanu be designed with the same directory wiht subdirectories structure.
    Example:
    G:\1 wav+mp3\1 Alles\2 Deutsches\Die Prinzen\Album Die Prinzen - Das Leben ist grausam\AlbumArtSmall.jpg
    G:\1 wav+mp3\1 Alles\2 Deutsches\Die Prinzen\Album Die Prinzen - Das Leben ist grausam\Betriebsdirektor - Das Leben Ist Grausam - die Prinzen - 05 - .mp3
    G:\1 wav+mp3\1 Alles\2 Deutsches\Die Prinzen\Album Die Prinzen - Das Leben ist grausam\Blaues Blut - Das Leben Ist Grausam - die Prinzen - 07 - .mp3
    G:\1 wav+mp3\1 Alles\2 Deutsches\Die Prinzen\Album Die Prinzen - Das Leben ist grausam\desktop.ini
    G:\1 wav+mp3\1 Alles\2 Deutsches\Grönemeyer\Zwölf\Herbert_Grönemeyer_-_12_[2007]_-brandneu-_[found-on-www-bitreactor-to].to rrent
    G:\1 wav+mp3\1 Alles\2 Deutsches\Grönemeyer\Zwölf\Lied 01 - Ein Stück vom Himmel.mp3
    G:\1 wav+mp3\1 Alles\2 Deutsches\Grönemeyer\Zwölf\Lied 02 - Kopf hoch,tanzen.mp3
    G:\1 wav+mp3\1 Alles\2 Deutsches\Grönemeyer\Zwölf\Lied 03 - Du bist die.mp3
    G:\1 wav+mp3\1 Alles\2 Deutsches\Hannes Wader\ Dass nichts bleibt wie es war\Rohr im Wind - Dass nichts bleibt wie es war - Hannes Wader - 07.mp3
    G:\1 wav+mp3\1 Alles\2 Deutsches\Hannes Wader\ Dass nichts bleibt wie es war\Schon so lang - Dass nichts bleibt wie es war - Hannes Wader - 02.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Allerlei
    G:\1 wav+mp3\1 Alles\3 Song\Allerlei\(Everything I Do) I Do It For You - Bryan Adams - Best of Me (Ecopac) - 10.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Allerlei\(Sittin' on) the dock of the bay - Otis Redding - (Sittin' on) the Dock of the Bay - 01.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Allerlei\~ Change Is Gonna Come - The Neville Brothers - Yellow Moon - 01.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Boney M. - Daddy Cool\Baby, Do You Wanna Bump - Daddy Cool - Boney M. - 06.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Boney M. - Daddy Cool\Barbarella Fortuneteller - Daddy Cool - Boney M. - 15.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Boney M. - Daddy Cool\Belfast - Daddy Cool - Boney M. - 04.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Elvis Presley - Definitive Country Album
    G:\1 wav+mp3\1 Alles\3 Song\Elvis Presley - Definitive Country Album\AlbumArtSmall.jpg
    G:\1 wav+mp3\1 Alles\3 Song\Elvis Presley - Definitive Country Album\Always On My Mind - Definitive Country Album - Elvis Presley - 03.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Elvis Presley - Definitive Country Album\Burning Love - Definitive Country Album - Elvis Presley - 09.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Elvis Presley - Definitive Country Album\Don't Cry Daddy - Definitive Country Album - Elvis Presley - 15.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Flying Pickets\Every Little Thing She Does-Flying Pickets - Flying Pickets.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Flying Pickets\Folder.jpg
    G:\1 wav+mp3\1 Alles\3 Song\Flying Pickets\goodnight sweethart - flying pickets - flying pickets .mp3
    G:\1 wav+mp3\1 Alles\3 Song\Flying Pickets\Groovin'-Flying Pickets - Flying Pickets.mp3
    G:\1 wav+mp3\1 Alles\3 Song\Flying Pickets\I Got You Babe - Flying Pickets - Flying Pickets.mp3
    G:\1 wav+mp3\1 Alles\4 Instrumental\Allerlei\Classical - Franz Liszt - Liebestraum piano - Franz Liszt - Liebestraum piano.mp3
    G:\1 wav+mp3\1 Alles\4 Instrumental\Allerlei\Classical Guitar - Greensleeves - Greensleeves.mp3
    G:\1 wav+mp3\1 Alles\4 Instrumental\Allerlei\Classique - Schumann - Carnaval, Chopin - Schumann - Carnaval, Chopin.mp3
    G:\1 wav+mp3\1 Alles\4 Instrumental\Allerlei\Crown Chakra - Tony O'Connor - Tony O'Connor.mp3
    G:\1 wav+mp3\1 Alles\4 Instrumental\Allerlei\Dallas - TV 70's & 80's.mp3
    usw.
    Is there a program led?
    Thank you very much
    frank

    deggie wrote:
    No, as there is no such file management system in iOS.
    I do not understand this..
    In iTunes I can create folders and subfolders.
    Please look.
    I would like to drag the folder "1 All" in iTunes.
    There should also then the folder structure are taken
                       iTunes                                                 Windows 7 Explorer
                    Folder in Folder                                        Folder in Folder
    Thank you very much
    Frank

  • Problem in retreiving directory structure, code needs correction

    hello there
    I am trying to fetch the directory structure of a particular directory in a way that the structure of subdirectories is also displayed.
    I have the following code:
    CODE:
    import java.io.*;
    public class FetchDir2
    static File dirStruct[][] = new File[300][100]; //stores the directory structure at a particular level
    static Integer pastIndex[] = new Integer[300]; //Stores index upto which a particular level has been scanned
    static String path = "C:/trydir"; //path of user's workspace, change it accordingly
    static int level = 0;
    static int index = 0;
    static int j=0;
    static int i=0;
    public static void main(String s[])
    File fileTry = new File(path);
    for(int i=0;i<300;i++)
         pastIndex=0;
    fetchStr(fileTry);
    public static void fetchStr(File fileTry)
    dirStruct[level] = fileTry.listFiles(); //fetch list of files and directories at this LEVEL
    sort(dirStruct[level]);
    for(i=0;i<dirStruct[level].length;i++) //loop to scan each element at this level
    if(dirStruct[level][i].isFile()) //if file is encountered
    System.out.println("Level:"+level+"\t Index:"+pastIndex[level]+"\t DirStruct.Length:"+dirStruct[level].length);//CHKPOINT
         System.out.println("<file>"+dirStruct[level][i].getName()+"</file>"); //print file element
         pastIndex[level]++; //increase the index at this level by 1
    //     if(dirStruct[level].length==0)
    //     {break;}
    //     else
         if(pastIndex[level]==dirStruct[level].length)
         System.out.println("</directory>");
         pastIndex[level]=0;
    level--;
         if(level==-1)
              break;     
    if(dirStruct[level][i].isDirectory())
    System.out.println("Level:"+level+"\t Index:"+pastIndex[level]+"\t DirStruct.Length:"+dirStruct[level].length);//CHKPOINT
         String path = dirStruct[level][i].getPath();
         File f = new File(path);
         System.out.println("<directory>PATH:"+path);
         pastIndex[level]++;
         if(pastIndex[level]==((dirStruct[level].length)-1))
         pastIndex[level]=0;
         level--;
         System.out.println("</directory>");
         else
         level++;
         //System.out.println("</directory>");
         fetchStr(f);
    public static void sort(File dirStruct[])
    for(i=0;i<dirStruct.length;i++)
    for(j=0;j<i;j++)
         int compare = dirStruct[i].compareTo(dirStruct[j]);
         if(compare>0)
         swap(dirStruct[i],dirStruct[j]);
    public static void swap(File f1,File f2)
    File f3;
    f3=f1;
    f1=f2;
    f2=f3;
    The dirctory structure used for testing is:
    <dir trydir>
    <file>f1</file>
    <file>f2</file>
    <file>f3</file>
    <dir d1>
    <dir d21>
    <file>f</file>
    </dir>
    <dir d22>
    <file>f</file>
    </dir>
    <file> f21</file>
    <file> f22</file>
    </dir>
    OUTPUT:
    Level:0 Index:0 DirStruct.Length:5
    <file>a1.txt</file>
    Level:0 Index:1 DirStruct.Length:5
    <directory>PATH:C:\trydir\d1
    Level:1 Index:0 DirStruct.Length:4
    <directory>PATH:C:\trydir\d1\d21
    Level:2 Index:0 DirStruct.Length:1
    <file>f31.txt</file>
    </directory>
    Level:1 Index:1 DirStruct.Length:4
    <directory>PATH:C:\trydir\d1\d21
    Level:2 Index:0 DirStruct.Length:1
    <file>f31.txt</file>
    </directory>
    Level:1 Index:2 DirStruct.Length:4
    <directory>PATH:C:\trydir\d1\d21
    </directory>
    Level:0 Index:2 DirStruct.Length:1
    <file>f31.txt</file>
    Can some one please correct this code.
    10 dukes are staright yours if you can.

    hi
    here is the code i work for u
    The code is changed and go through it
    import java.io.*;
    public class FetchDir2 {
        final static String path = "C:/web"; //path of user's workspace, change it accordingly
        public static void main(String s[]) {
            File fileTry = new File("c:/web");
            fetchStr(fileTry,0,0);
        public static void fetchStr(File fileTry,int level,int idx) {
            File dirList[]=fileTry.listFiles();
            sort(dirList);
            File f=null;
            System.out.println("Level:" + level+" Index:"+idx +" DirStruct.length:"+dirList.length);
            for(int i=0;i<dirList.length;i++){
                f = dirList;
    System.out.println("Level:"+level+" Index:"+i );
    if(f.isFile()){
    System.out.println("<file>"+ f.getName()+"</file>");
    else{
    System.out.println("<directory> Path:"+fileTry.getPath());
    fetchStr(f,level++,i);
    System.out.println("</directory>");
    public static void sort(File dirStruct[]) {
    int compare=0;
    for(int i=0;i<dirStruct.length-1;i++) {
    for(int j=i+1;j<dirStruct.length;j++) {
    compare= dirStruct[i].compareTo(dirStruct[j]);
    if(compare>0)
    swap(dirStruct[i],dirStruct[j]);
    public static void swap(File f1,File f2) {
    File f3;
    f3=f1;
    f1=f2;
    f2=f3;
    }Hopes it helps you...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Connecting to solaris Os through Windows 2000

    Hello!
    how do i connect to solaris Os through Windows 2000
    thanks.

    how do i connect to solaris Os through Windows 2000TELNET, FTP, and many other Internet Standard mechanisms should work "out of the box". Lots of other ways can be enabled either by configuration changes or installing additional software. If you explain what you want to do, and what you mean by "connect to", someone will be able to give you a more precise answer.

  • MacBook USB port broken. Need to backup through Windows PC.

    Since my situation is a bit complicated I will be starting off with some background information:
    I currently own a MacBook Pro 15inch (mid 2010) 2.4GHz, Intel Core i5, 4GB (running OS X 10.8.5)
    My USB ports haven't worked in 2 years (I assume that i must of over powered them) however, when I insert my USB powered speakers into one of the two USB ports it powers them, and with the use of an AUX I am able to transmit the sound BUT my MacBook is still not able to recognize any other USB or external hard drive device. Still not sure why only my speakers receive power through the technically broken USB ports so if anyone can offer any insight on this, that would be great.
    Moving on to the main problem:
    So I want to format and reinstall the software on my MacBook BUT FIRST I need to backup. Since my USB ports wont work I've tried to find other solutions. (Don't want to buy an AirPort Time Capsule).
    I've tried the Belkin Network USB Hub but since it's software only supports up to OS X 10.5 It would not work on my device.
    I have FINALLY found a convenient and cheap solution by setting up File sharing network (from my Mac to my old Vista, PC) and purchased My Passport Ultra.
    The plan is to send my files to the PC and from there to save them onto the external hard drive (and then send them back to my Mac). Sounds easy HOWEVER, after some research I've noticed that in order to get My Passport to work with Mac and PC you have to reformat it (not sure if you have to format on both platforms in order to be able to use on both as well), so I have the following questions:
    1. Since My Passport wont connect to my Mac is there anyway of formatting the external hard drive through Windows and still be able to use with Mac? (if not I can always format the external hard drive on a friends Mac)
    2. I won't need to open the files on Windows, the PC is simply a gateway in order for me to get the files onto a hard drive, so do I still need to format it to work on Windows? Will the files still be usable when sent back to the Mac?
    I have tried to explain my situation as simply as possible but if anyone has any questions or is unsure of something I have mentioned please ask. I want to avoid buying anymore devices in order to do this, so any solutions in which I can use what I have would be much appreciated. I cannot go to an Apple store as I no longer live in the UK and we do not have an Apple store here.
    If anyone knows of another way to get the files on to My Passport (other than what I'm trying to do) I am open to discussion. Thanks in advance  

    Morning  Csound1,
    Had your coffee yet?
    Clinton
    MacBook Pro (15-inch Late 2011), OS X 10.??, 16GB Crucial RAM, Crucial M500 960GB SSD, 27” Apple Thunderbolt Display

Maybe you are looking for