How to Provide File Path in MII 12 to access file located in Network Path

Hi,
How can I locate a file which is placed Network Path?
Iam trying to access PDF file which is stored in Network Drive, I just want to open folder which contains all PDF files located in some Network Path on click of button.
I tried all possibilities like below:
window.open("file
\G:");
window.open("
SERVER-NAME
Folder Name");
But Iam unable to Fix this.
Please Help me in this regard
Regards,
Padma

Hi Rao,
this is less a MII than a browser or mapping problem.
You can access a local file in a browser like this:
window.open('file:///c:/folder/file.txt');
However, in case of MII local means local to the MII server. So in the above example the file is located on the c driver of the MII server.
If you want to access files on a network drive, the folders to the files should be mapped on the MII server so you are able to address them like they were local files.
I haven't tried to address network folders directly, because we are running MII on Unix.
Michael

Similar Messages

  • How to read data from a zipped MS Access file?

    How to read data from a zipped MS Access file?

    RPJ,
    You do not need to use the Close Zip File.vi when you unzip a folder.  This VI is used when you are creating a zip folder.
    As for examples, I found a couple of ActiveX based MS Access examples.  These programs look to be pretty basic.  For more in depth example I would search Microsoft Developers Network
    http://zone.ni.com/devzone/cda/epd/p/id/2188
    http://zone.ni.com/devzone/cda/epd/p/id/1694
    Regards,
    Jon S.
    National Instruments
    LabVIEW R&D

  • Ccm log access denied or invalid network path.

    Hi
    One of my system not able to install SCCM 2007 client. Getting below error when i drop ccr .
    ======>Begin Processing request: "I7M92P-7100726", machine name: "I7M92P-7100726"
    ---> Trying each entry in the SMS Client Remote Installation account list
    ---> Warning: no remote client installation account found
    ---> Attempting to connect to administrative share '\\I7M92P-7100726\admin$' using machine account.
    ---> Failed to connect to \\I7M92P-7100726\admin$ using machine account (5)
    ---> ERROR: Failed to connect to the \\I7M92P-7100726\admin$ share using account 'Machine Account'
    ---> ERROR: Unable to access target machine for request: "I7M92P-7100726", machine name: "I7M92P-7100726", access denied or invalid network path.
    What i checked:
    firewall is disabled.
    Certificate is valid
    Able to access admin$
    i can connect wbemtest \\I7M92P-7100726\root\cimv2 ok.
    Can you folks tell me anything i missed to check?

    5 = "Access Denied"
    ConfigMgr uses the site server's AD computer account by default -- which is indicated in the log above by the text using account 'Machine Account' -- so you checking access using your account is meaningless except to prove that the admin$ share exists.
    You need to either configure a client installation account or grant the site server's AD computer account local admin permissions on the target system.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • How to provide the user with a list of files to pick from...for downloading

    hai..
    I have uploaded the file succesfully.. now we need to download the file...... which has been uploaded..... for that we have implemnted the Query as..
    select max(id) from APEX_APPLICATION_FILES ,here the latest uploaded record will be retrieved and shown.
    Now We want to provide the user with a list of files to pick from for downloading..,Dat is he should be shown the list of files which is available from dat he has to select one file to downlaod ???
    can u plz tell me how to do it....
    anoo

    Hi Anoo,
    Create a report using the following SQL statement:
    SELECT ID,
    FILENAME,
    CREATED_ON
    FROM APEX_APPLICATION_FILES
    ORDER BY CREATED_ON DESCThere are other fields available from the table, but the above gives you a start.
    Then edit the report's Report Attributes.
    Edit the CREATED_ON column and pick a Number/Date Format to use for the display and Apply Changes
    Edit the ID column. In the Column Link section, enter:
    Link Text: <img src="#IMAGE_PREFIX#download.gif" alt="Download">
    Target: URL
    URL: p?n=#ID#
    Apply Changes and run your report
    Andy

  • Files and Streams java -- Sequential access file-- Plz help me

    I am able to add records in sequential file and then also I am able to display each record sequentially.
    But after closing the file if I open the file for adding records, the newly added records are not being displayed while clicking the "next" button to read them.
    How to bring the pointer to end of records in sequential file , so that when I stat adding records after opening an existing file, they should be added successively after the last record in that file.
    enter = gui.getTask1();
              enter.setText("Enter");
              enter.setEnabled(true);
              try
              FileOutputStream fos = new FileOutputStream("c:/file.txt",true);
              output = new ObjectOutputStream(fos);
              enter.addActionListener(
                        new ActionListener()
                             public void actionPerformed( ActionEvent e )
                                  addRecord1();
              catch(Exception e)
                   System.out.println("Error in ObjectOutputStream before pressing Enter button");
    private void addRecord1()
              String[] fieldValues = gui.getFieldValues();
              if(! fieldValues[0].equals(""))
                   try
                        int id=Integer.parseInt(fieldValues[0]);
                        if(id>0)
                             Record rcrd = new Record(id, fieldValues[1], fieldValues[2]);
                             System.out.println(" " +rcrd.getString()+"\n");
                             output.writeObject(rcrd);
                             output.flush();
                             gui.clearFields();
                             display.append(" "+rcrd.getId()+" "+rcrd.getName()+" "+rcrd.getAddr()+"\n");
                             readf.setEnabled(true);
                   catch (NumberFormatException nfe)
                        JOptionPane.showMessageDialog(this, "Incorrect id", "Invalid number formate", JOptionPane.ERROR_MESSAGE);
                   catch (IOException io)
                        closeFile();
         }Message was edited by:
    MissJavaa

    You can't append multiple ObjectOutputStreams to the same file unless you know where one ends and the other starts and you use a new ObjectInputStream at each join. And even that mightn't work because of buffering. Keep the file open or start a new file.
    And I wouldn't call the file 'file.txt', it isn't a text file.

  • How do I use an external Monitor to access files on my iMac with a broken screen?

    I have an 20 inch desktop iMac with a broken screen. It is the files on the computer that I wish to recover, after that, I can be on my merry way. Unfortunately, VileVault was on (Not my choice), and for some reason, when I target the disc image of the broken mac with a new one, ONE of the accounts "appears" to be completely empty. All of the accouts were running FileVault, but only one (mine) failed to be transferred because it is "empty". I refuse to believe that my files are actually all gone, because theoretically there should be nothing wrong with the CPU itself, just the screen.
    Thus my goal is to use a monitor on my broken screen iMac and simply log in and access my files normally, and perhaps pull them out with a USB or something. I have a DELL monitor, and a DVI (The big hairy plug with screws I think) converter that works with my old iMac, along with the male/male DVI cord. However, when I hook it up, nothing happens. I have tried booting the old CPU while holding F7, and option as I read on a forum, and neither produced results.
    Does anyone have any ideas on how to 1. Get the monitor to simply show what's going on on the mac? or 2. Pull out my files through some other means?
    Thank you.

    If you have a second Mac computer, you may want to try to copy over as many files you can. One way is to use target disk mode.
    http://support.apple.com/kb/HT1661
    http://lowendmac.com/misc/06/0710.html
    You need to follow this procedure to recovering a filevault id.  Mac OS X 10.3, 10.4: FileVault - How to verify or repair a home directory image ...  http://support.apple.com/kb/HT2631?viewlocale=en_US  
    Robert

  • How to create menu function for link to open file

    Hi,
    I need help how to create menu function for link to access file and allow user to save the file when click on it.
    The file will keep inside server.
    Thank you.
    Regards,
    Wilson

    I need help how to create menu function for link to access file and allow user to save the file when click on it.
    The file will keep inside server.AFAIK, you have to write a custom code to achieve this and Oracle does not provide this functionality.
    If you want to store the file as an attachment, please see (How to Store Image/PDF Attachments on the File System in 11i and R12 (like Attachment File Directory) [ID 294525.1]).
    Thanks,
    Hussein

  • How can I Write a sine wave in an Access-fil​e?

    I measure a sine wave in LabView 6i. How can I write the datas automatically to an Acces-file, at the same time?
    In my program, I managed it with Execute SQL.vi, I change a number in a SQL statement(String) -> after this I push start and then it writes the statement in the Access-file.
    The problem is, it writes only one data per measurement in the file. How can I write all datas in the Access-file and measure the wave at the same time?
    Thanks for help!
    Attachments:
    getwave.vi ‏49 KB

    On the waveform palette, you will find a "to components" vi that you can break out the array of the waveform. You can then, using a for loop write all of the values from the waveform.
    Better yet, there are examples in the database toolkit manual on pages 3-13 to 3-15 that deal with reading arrays (and even has a waveform example).
    Good luck!

  • Please Help java.policy signedBy can't access file local

    i create keystore and signjar in web applet
    run tomcat access file in local but not acess file denied
    i goto edit file java.policy
    grant {
         permission java.security.AllPermission;
    can access file
    but put SignedBy cannot access file
    grant SignedBy fuangchai{
         permission java.security.AllPermission;
    Please help me example file keystore,applet.jar,java.policy
    to signedby access file local in webapplet
    env JDE 1.5 ,javascript yui 2.8 ,prototype js,tomcat6
    File html
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase="http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=5,0,0,5"
    width="1" height="1" >
    <param name=code value="com.arg.aes.test.FileDirectoryBS.class" >
    <param name=archive value="app.jar">
    <param name=codebase value="." >
    <param name="type" value="application/x-java-applet;version=1.5">
    <param name="scriptable" value="true">
    <param name="mayscript" value="true">
    <param name="debug" value="false">
    <comment>
    <embed name="myApplet" id="myApplet"
    type="application/x-java-applet;version=1.5"
    code="com.arg.aes.test.FileDirectoryBS.class"
    archive="app.jar"
    java_codebase="."
    width="1"
    height="1"
    scriptable="true"
    mayscript="true"
    pluginspage="http://java.sun.com/products/plugin/index.html#download">
    <noembed>
    </noembed>
    </embed>
    </comment>
    </object>
    <applet
    code="com.arg.aes.test.FileDirectoryBS"
    width="1"
    height="1"
    archive="app.jar"
    name="myApplet"
    codebase="."
    MAYSCRIPT="true"
    >
    </applet>
    javascript
    initlistfile : function() {
              try
                   var list = $("myApplet").initlistfileInDir();     
                   var jsondata = list.evalJSON();
                   /*alert(jsondata.dirname);
                   alert(jsondata.dirpath);
                   alert(jsondata.listfile.length);*/
                   initTableLeft(jsondata.listfile);
              catch(e)
                   alert("Exception : access denied.");
                   return;
    import java.applet.Applet;
    import java.io.File;
    import java.security.Permission;
    import java.security.PermissionCollection;
    import java.security.Policy;
    import java.security.ProtectionDomain;
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    import java.util.ArrayList;
    import java.util.Enumeration;
    import java.util.List;
    * @author fuangchai
    public class FileDirectoryBS extends Applet{
    public static File[] ROOTS = File.listRoots();
    public static String HOME = System.getProperty("user.home");
    public String listDir()
    return JsonObj.makeTopDir((ROOTS.length > 0)?ROOTS : new Object[]{HOME});
    public String initlistfileInDir()
    return listfileInDir(null);
    public String listfileInDir(String dirName)
    if(null == dirName || dirName.equals(""))
    System.out.println("root = " + ROOTS.length);
    try {
    dirName = (ROOTS.length > 0)?ROOTS[0].getPath():HOME;
    catch (Exception e) {
    e.printStackTrace();
    return "";
    System.out.println("#########################");
    DirectoryDescImp obj = makeObjDir(dirName);
    return (null == obj)?null:JsonObj.makeDir(obj);
    public String listlinkInDir(String dirName)
    if(null == dirName || dirName.equals(""))
    System.out.println("root = " + ROOTS.length);
    try {
    dirName = (ROOTS.length > 0)?ROOTS[0].getPath():HOME;
    catch (Exception e) {
    e.printStackTrace();
    return "";
    System.out.println("#listlinkInDir#");
    try {
    File obj = new File(dirName);
    return (null == obj)?null:JsonObj.makelinkDir(obj.getName(),obj.getPath());
    } catch (Exception e) {
    System.out.println("I can't access a file here! Access Denied!");
    e.printStackTrace();
    return null;
    public boolean isEnc(File f)
    //TODO
    return false;
    public DirectoryDescImp makeObjDir(String dirName)
    System.out.println("dirName = " + dirName);
    try{
    File dir = new File(dirName);
    String[] entries = dir.list();
    if(null == dir || null == entries || entries.length <= 0)
    System.out.println("Data is null or not obj." );
    return null;
    System.out.println("Dir List = " + dir.list().length);
    System.out.println("Dir Name = " + dir.getName());
    System.out.println("Dir Path = " + dir.getPath());
    DirectoryDescImp dirDesc = new DirectoryDescImp();
    dirDesc.setDirName(dir.getName());
    dirDesc.setDirPath(dir.getPath());
    List<FileDescImp> list = new ArrayList<FileDescImp>();
    for(int i=0; i < entries.length; i++) {
    File f = new File(dir, entries);
    FileDescImp fDesc = new FileDescImp();
    fDesc.setFile(f);
    fDesc.setFileEncrept(isEnc(f));
    list.add(fDesc);
    dirDesc.setListfile(list);
    return dirDesc;
    catch(Exception e){
    System.out.println("I can't access a file here! Access Denied!");
    e.printStackTrace();
    return null;
    Thank you
    Fuangchai Jum
    Mail [email protected]
    Edited by: prositron on Jan 13, 2010 7:35 AM

    OK,
    Let's say I have to intialize Environment, and call method initEnvironment() in Applet's init(). Environment class:
    class Environment
         private KeyStore keyStore;
         private Enumeration<String> aliases;
         public void initEnvironment() {
              Security.addProvider(new sun.security.mscapi.SunMSCAPI());
              keyStore = KeyStore.getInstance("Windows-MY");
              keyStore.load(null);
              aliases = keyStore.aliases();
    }Applet is signed, I trust signer.
    Since Applet is signed I'm able to overwrite existing .java.policy under user.home.
    This doesn't work if I don't have .java.policy:
    grant {
      permission java.security.SecurityPermission "insertProvider.SunMSCAPI";
      permission java.security.SecurityPermission "authProvider.SunMSCAPI";
      permission java.util.PropertyPermission "jsr105Provider", "read";
      permission java.util.PropertyPermission "com.sun.xml.internal.ws.api.pipe.Fiber.serialize", "read";
      permission java.lang.RuntimePermission "setContextClassLoader";
      permission java.util.PropertyPermission "com.sun.xml.internal.ws.api.streaming.XMLStreamWriterFactory.noPool", "read";
      permission java.lang.RuntimePermission "accessDeclaredMembers";
      permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
      permission java.lang.RuntimePermission "accessClassInPackage.com.sun.xml.internal.ws.fault";
      permission java.util.PropertyPermission "com.sun.xml.internal.ws.api.streaming.XMLStreamWriterFactory.woodstox", "read";
    };P.S.
    Does it make sense to be able to make changes to file system and not be able to make actions from above policy?!?!

  • Reflection - How to provide qualified path to class?

    Hello folks,
    I am writing the application in which user will be able examine any java class at any mapped drive at his PC.
    The snipplet is as follows:
    import java.lang.reflect.*;
    public class ClassInfo {
    public static void main( String[] args ) throws Exception {
    Class theClass = Class.forName(args[0]);
    System.out.println("Class Name: " + theClass.getName());
    //Other methods go here
    (In GUI application I will provide a FileChooser, of course.)
    It works perfectly well as long as the class I want to examine is in the same folder. Example below.
    C:\MyFolder>java ClassInfo MyClass
    Class Name: MyClass
    But when I try to provide the full path to the class outside of that folder - it did not work at all. I am getting ClassNotFound exception. I tried every possible way, such as "C:\\myFolder2\\myClass2� and
    "myFolder2.myClass2", etc.
    Does someone know how to circumvent this obstacle?
    Many thanks at advance.
    Vlad

    Thank you very much, guys, for your responses. I figured it out. Hopefully, my code will be useful for someone else.
    The only limitation is: In the current version it does not handles packages, in other worlds, if the class is a part of a package, such as
    package hello;
    public class HelloFromHell{
    //the rest of the class
    I am getting error messge:
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloFromHell (wrong name: hello/HelloFromHell) It expects to find the class name in the directory named "hello", which is a package name.
    Vlad
    import java.io.*;
    import java.lang.reflect.*;
    import java.net.*;
    import javax.swing.*;
    public class ClassInfo {
    static void displayClassInfo(File file) {
    //Get Directory info
    File directory = file.getParentFile();
    //Get Class name without ".class" ext
    String className = file.getName().substring(0,file.getName().length() -".class".length());
    try {
    //Create the URLClassLoader
    URL[] theURL = {directory.toURL()};
    URLClassLoader loader1 = new URLClassLoader(theURL);
    //Pass class name loader to the forName method
    Class theClass = Class.forName(className, true, loader1);
    System.out.println("Directory: " + directory.toURL());
    System.out.println("Class: " + theClass.getName());
    Method[] theMethods = theClass.getDeclaredMethods();
    System.out.println("Methods:");
    System.out.println("-------");
    for (int i = 0; i < theMethods.length; i++) {
    System.out.println("Name: " + theMethods.getName());
    System.out.println();
    //Other reflection methods go here as needed
    catch (ClassNotFoundException cnfe) {
    System.err.println(cnfe);
    System.err.flush();
    catch (java.net.MalformedURLException mue) {
    System.err.println(mue);
    System.err.flush();
    //Helper method to prevent user from selecting anything but java classes
    static boolean isClass(String fileName) {
    if (fileName.endsWith(".class")) {
    return true;
    return false;
    //Method to call JFileChooser dialog thus preventing users from typing
    public static void main(String[] args) {
    // display a file dialog to the user for file selection
    JFileChooser fileChooser = new JFileChooser(System.getProperty("user.dir"));
    if (JFileChooser.APPROVE_OPTION == fileChooser.showOpenDialog(new JFrame())) {
    if ( (fileChooser.getSelectedFile().getName() != null) &&
    (isClass(fileChooser.getSelectedFile().getName()))) {
    displayClassInfo(fileChooser.getSelectedFile());
    else {
    //Handle errors gracefully
    System.out.println("No file was selected or file is not a java class.");
    System.exit(0);

  • How to Provide search Help for files on Application Server

    Hi Guys,
                   Can anyone tell me How to Provide search Help for files on Application Server. I have put a file name on selection screen. I want to give search help for files on application server.
    Thanks & Regards.
    Harish.

    Hi Harish,
    Use the following code,
    tables sxpgcotabe.
    data: lt_execprot LIKE btcxpm OCCURS 0 WITH HEADER LINE,
            w_filepath(60)       TYPE c, --> length depending on your Directory path.
      SELECT SINGLE *
        FROM sxpgcotabe
             WHERE name = 'LIST_DB2DUMP'
               AND opsystem = sy-opsys.
      IF sy-subrc <> 0.
        SELECT SINGLE *
          FROM sxpgcotabe
               WHERE name = 'LIST_DB2DUMP'
                 AND opsystem = 'UNIX'.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'External operating system command '
                            'LIST_DB2DUMP not found'.
        ENDIF.
      ENDIF.
      sxpgcotabe-parameters = p_filepath. --> provide the directory path.
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
           EXPORTING
                commandname                   = sxpgcotabe-name
                additional_parameters         = sxpgcotabe-parameters
                operatingsystem               = sxpgcotabe-opsystem
           TABLES
                exec_protocol                 = lt_execprot 
           EXCEPTIONS
                no_permission                 = 1
                command_not_found             = 2
                parameters_too_long           = 3
                security_risk                 = 4
                wrong_check_call_interface    = 5
                program_start_error           = 6
                program_termination_error     = 7
                x_error                       = 8
                parameter_expected            = 9
                too_many_parameters           = 10
                illegal_command               = 11
                wrong_asynchronous_parameters = 12
                cant_enq_tbtco_entry          = 13
                jobcount_generation_error     = 14
                OTHERS                        = 15.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH text-e01 p_filepath.  "Directory failed
      ENDIF.
    Loop round the directory list, split each line up into a line table
    and get the last data for each line, should be the filename
    Then build the dirlist.
      REFRESH t_dirlist.
      LOOP AT lt_execprot.
        REFRESH t_dirline.
        SPLIT lt_execprot-message AT space INTO TABLE t_dirline.
        DESCRIBE TABLE t_dirline LINES w_nolines.
        READ TABLE t_dirline INDEX w_nolines.
        MOVE t_dirline-data TO t_dirlist-filename.
        APPEND t_dirlist.
      ENDLOOP.
    Here you will get all the files in the directory mentioned in Application server.
    For displaying them as a Search help use the FM '/BMC/ZPOPUP_GET_VALUE'
    Pass the Internal table to this FM.
    Regards,
    Paul.

  • How do I find out the exact path of each and every file that LabVIEW finds and loads into memory for a given top level vi?

    How do I find out the exact path of each and every file that LabVIEW finds and loads into memory for a given top level vi? There is probably a trivial, easy way to get this info, but I have not yet found it!  Thanks..

    Or if you want to grab all the paths programatically, try the attached VI.
    Open the top level that you want all the paths from and close all others, then open the
    attached and run it. It will return an array of all the VIs that the VI
    in question uses, including vi.lib VIs. You can filter these as well if
    you like.
    Ed
    Message Edited by Ed Dickens on 08-01-2005 07:01 PM
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
    Attachments:
    Get all paths.vi ‏29 KB

  • How to run a jar file which needs another jar to be in the class path

    Hi,
    I need to execute a jar, which needs another jar to be in the classpath.
    If I run like
    java -classpath <jar1 name> -jar <main jar>
    It is giving classnotfoundexception, where as the class is available in the <jar1 name>.
    so, currently I am doing like this
    In the manifest file i have given like
    Main-Class: <class name>
    Class-Path: <jar name> <jar name2>
    then it is running fine. But, if I want to change the jar location again I need to changed the manifest file.
    Is there any way to do this? Pls help me.

    How about
    java -cp jar1.jar;jar2.jar com.acme.MainClass
    You won't need to worry about the manifest file after that and you can make a bat files (or .sh file in *nix) for it.                                                                                                                                                                                                                                                                                                                                                                       

  • How to get the full path instead of just the file name, in �FileChooser� ?

    In the FileChooserDemo example :
    In the statement : log.append("Saving: " + file.getName() + "." + newline);
    �file.getName()� returns the �file name�.
    My question is : How to get the full path instead of just the file name,
    e.g. C:/xdirectory/ydirectory/abc.gif instead of just abc.gif
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class FileChooserDemo extends JFrame {
    static private final String newline = "\n";
    public FileChooserDemo() {
    super("FileChooserDemo");
    //Create the log first, because the action listeners
    //need to refer to it.
    final JTextArea log = new JTextArea(5,20);
    log.setMargin(new Insets(5,5,5,5));
    log.setEditable(false);
    JScrollPane logScrollPane = new JScrollPane(log);
    //Create a file chooser
    final JFileChooser fc = new JFileChooser();
    //Create the open button
    ImageIcon openIcon = new ImageIcon("images/open.gif");
    JButton openButton = new JButton("Open a File...", openIcon);
    openButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    int returnVal = fc.showOpenDialog(FileChooserDemo.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    //this is where a real application would open the file.
    log.append("Opening: " + file.getName() + "." + newline);
    } else {
    log.append("Open command cancelled by user." + newline);
    //Create the save button
    ImageIcon saveIcon = new ImageIcon("images/save.gif");
    JButton saveButton = new JButton("Save a File...", saveIcon);
    saveButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    int returnVal = fc.showSaveDialog(FileChooserDemo.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    //this is where a real application would save the file.
    log.append("Saving: " + file.getName() + "." + newline);
    } else {
    log.append("Save command cancelled by user." + newline);
    //For layout purposes, put the buttons in a separate panel
    JPanel buttonPanel = new JPanel();
    buttonPanel.add(openButton);
    buttonPanel.add(saveButton);
    //Explicitly set the focus sequence.
    openButton.setNextFocusableComponent(saveButton);
    saveButton.setNextFocusableComponent(openButton);
    //Add the buttons and the log to the frame
    Container contentPane = getContentPane();
    contentPane.add(buttonPanel, BorderLayout.NORTH);
    contentPane.add(logScrollPane, BorderLayout.CENTER);
    public static void main(String[] args) {
    JFrame frame = new FileChooserDemo();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.pack();
    frame.setVisible(true);

    simply use file.getPath()
    That should do it!Thank you !
    It takes care of the problem !!

  • How to provide date and time stamp to the extracted file.

    I 'm downloading data from DB to Flat file using GUI_DOWLOAD. whenever it is executed it is creating with a file name.
    if i rerun the program the file is overwriting with the same name.
    now based on the requirement how many times i executed, that many times file should be individually created and should be added with date and time stamp.
    like
    if when i executed  at the very first time it should saved with filename, date and time.
    say "Address.txt 04/05/2007 07:55:10"
    When i executed it for second time it doesn't overwrite the file.
    it should create a new file.
    like "Address.txt 04/05/2007 07:59:20".
    Please guide me the way if possible code.
    Thanks in advance.

    Hi Vamsi,
                   Use FM 'F4_PROGRAM' to take file from the user .
    In this case user will enter the file name. u can append date & time to that file path.
    Refer this code.
    CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SY-REPID
          DYNPRO_NUMBER = SYST-DYNNR
        IMPORTING
          FILE_NAME     = P_P_FILE.
    concatenate P_FILE '04/05/2007 07:59:20' into V_FILE.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                        = v_file
         filetype                        = 'ASC'
          write_field_separator           = 'X'
        TABLES
          data_tab                        = i_tab
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF sy-subrc = 0.
        MESSAGE i002.
      ENDIF.
    Reward points if helpful.
    Regards,
    Hemant.

Maybe you are looking for

  • Why wont my iPad update past iOS 5.1.1??

    I have an iPad original that is currently running iOS 5.1.1 that says it is currently up to date, however apps that need to be updated say they can't without iOS 6 or higher.  I have even restored it back to its factory settings and still nothing.  H

  • Upload excel sheet data through sqlloader into oracle tables

    hi everyone, i am working with excel sheet with following records 8501      Jacob Marshall      15000      21/10/2009      Finance 8502      Chris Campell      50000      13/06/2008      R&D 8503      Simon Dough      50000      3/07/2008      Engine

  • How do I get my iMessage to use my mobile number and not my email??

    I need to be able to use my mobile number in my iMessage but I will only let me use my email how do I fix it, because it lets me use it on my iPad but not my iPhone !

  • Characters not getting translated correctly

    I have written code that basically sends a URL to AltaVista's Babelfish translator, which translates the text that I send into whatever language I specify. In my case, I'm going from English to Spanish, translating the phrase "How are you?" When I ge

  • Canon EOS 7D CR2 Photos not Visible in CS4 Bridge

    Hello, Having downloaded the 5.6 plug-in for Elements 8 and saved it to my PSE plugin folder (IMAC) I am able to open and manipulate photos in Bridge and PSE. But I am unable to physically view the files in Bridge. Rather they appear as white rectang