Getting path from file

Good Morning,
Is there a way to get a file path from a file without having to select it through client_get_file_name?
for example i have a file 'test_01.txt' in C:/
I cannot hard code the path as each day the txt name will change eg. 'test_02'.
Is there another way to select the full path name in C:/ where file like 'test%'?
Thank you in advance,
D

Sorry francois ill be a more clear
On a variable i want to keep changing the path provided.
For example one day will be var:='C:/Test_01'
next day will be var:='C:/Test_03'
as the last number is generated randomly im trying to figure a way to get the correct path in C:/ where the name corresponds to 'test' so i can pass it to my variable
Edited by: 794018 on 18-Oct-2012 00:50

Similar Messages

  • Get data from file in server to client and vice versa

    after greeting
    i really didn't know how to use socket and serversocket to get data from file in the server and display it to client.
    also read file from client and save it to server.
    really i didn't know how to do it.
    really i want the reply as soon as possible

    You REALLY need to work through the Java networking tutorials:
    http://java.sun.com/docs/books/tutorial/networking/index.html

  • What is the best way to get PATHS from one Photoshop psd file to another?

    Hi! New on the site, and I signed up specifically to ask the best way to import one .psd file into another, including the paths on the paths palette.
    Almost all of my Photoshop drawings make heavy use of vector paths, which I then stroke using using PS natural-media brushes and the "stroke paths" function (usually with "simulate pressure" checked.) Also, my .psd files tend to be, um, HUGE... and I typically break up a whole drawing into separate PS files and then assemble all of them into one final finished graphic.
    I have no trouble moving raster stuff from file to file. Just put all the layers I want to transfer into a group and drag the group to the other .psd. Works fine, including layer masks. But I have not found a good way to get vector paths from the Paths palette of one .psd to another. Of course I can select paths and copy them to the Win clipboard, switch to the other .psd, and paste them back in. The drawback to that method is that I lose the correct size relation between the results of previously done "stroke paths" operations (on raster layers) and the paths that generated them. Sometimes the copied-in paths are way too large, sometimes way too small, never Just Right.
    As I'm sure most of you know, if you resize an entire Photoshop document from within PS, any paths it contains are correctly resized along with everything else. That's no longer true after grouped raster layers are dragged over to another document but paths are copied and pasted in. The size connection is lost. (Location placement, too.)
    I WANT those paths! After I bring a piece of a drawing into the full final drawing, what looked good when I was working on it separately often doesn't look right any longer and I want to re-stroke those paths using different brush diameter, opacity, etc., or maybe even a completely different brush.
    I've tried bring outside .psd files in as smart objects with the Place command but either that doesn't work or I'm not doing it right. Using Place, the paths in the Placed document don't come in at all.
    I'll be very grateful for any hints or strategies any of you knowledgeable folks can give me. Thanks very much!
    Jim
    Note, PS CS3 extended on Win 7 pro.

    Denny
    1. Connect the two macs - firewire, ethernet, sneakernet as suits you - and copy the iPhoto Library Folder from Old Machine to New Machine. Drag it from Home/Pictures to the same location on the new machine.
    2. Because all the files 'belong' to the account on the old machine, you have to update the file permissions: hence Download BatchMod from
    http://macchampion.com/arbysoft/
    And apply it to the iPhoto Library Folder using the settings found here:
    http://homepage.mac.com/toad.hall/.Pictures/Forum/BatChmod.png
    (Credit to Old Toad for this one).
    Note: This must be run on the new machine after copying the files over.
    3. Then launch iPhoto on the new machine.
    Regards
    TD

  • Get path and file name from Bfile

    Hi,
    I'm using Bfile to store images in a database. Is there a way to get the path and file name of the image from Bfile, because I need to pass that information into an image processing function.
    Many thanks.
    Sheldon

    Can you use FILEISOPEN in the DBMS_LOB package?
    See http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96591/adl03prg.htm#281893
    -- CJ

  • How to get FILENAME from FILE PATH

    does anyone know how to get filename from a file path for example
    FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
    returns
    FILENAME: Button.txt

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • FORMS 6i. How get file's path from file's name?????? HELP

    I want path of file IExplore.exe on file system...
    Thanks

    Hi!
    U can search for the path of the IExplore.exe and use it as
    Declare
         AppID          PLS_INTEGER;
         v_application VARCHAR2(300);
    Begin     
         v_application:='I:\Appli\Gbps\Help\iexplore.exe D:\XYZ\Help.htm';
         AppID := DDE.App_Begin(v_application, DDE.APP_MODE_MAXIMIZED);
         DDE.APP_END(AppID);
    End;
    D:\XYZ\Help.htm specifies the default file to be opened.
    If u don't give the html file name, it will just open Internet Explorer.
    Or else u can also use the Host command.

  • Getting data from file to array

    try
        System.out.println("Enter file name: ");
        fileName = Object.nextLine();
        BufferedReader inputStream =
                new BufferedReader(new FileReader(fileName));
        String employee = null;
        employee = inputStream.readLine();
        System.out.println("The first employee in " + fileName + " is");
        System.out.println(employee);
        inputStream.close();
    catch(FileNotFoundException e)
        System.out.println("File " + fileName + " not found ");
    catch(IOException e)
        System.out.println("Error reading from file " + fileName);
    }This is just a little example I made. You can look at my other thread to see the other code. I need to put the data in a file into the array. Does it need to be casted somehow?

    public void getData()
           try {
       System.out.println("Enter file name to read: ");
       File = Object.nextLine();
       BufferedReader Object =
                new BufferedReader(new FileReader(File));
        for(int i = 0; i < people.length && people[i] != null; i++)
    String temp = Object.readLine();
    people.setLastname(temp);
    temp = Object.readLine();
    people[i].setFirstname(temp);
    temp = Object.readLine();
    people[i].setID(temp);
    temp = Object.readLine();
    people[i].setPhone(temp);
    temp = Object.readLine();
    people[i].setYearlySalary(Double.parseDouble(temp));
    temp = Object.readLine();
    people[i].calcBonus(Double.parseDouble(temp));
    temp = Object.readLine();
    people[i].getMonthlyPay(temp));
    } Object.close(); }I know, I got careless with the naming. I'm trying a different route now. I think I can just do it in reverse. lol How would I get the method getMonthlyPay to have no errors. It's a public void() method with monthlyPay = (yearlySalary + bonus) / 12; in its definition.
    anyone?
    Edited by: Program_1 on Dec 9, 2007 5:42 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to get path to file variable with applescript

    I've tried:
    `set file_path to path of myfile`
    but it's giving me error:
    `error "Finder got an error: Can’t get path of document file ..."`

    Code is:
    set theFolder to (choose folder with prompt "Select the start folder")
    set file_list to every file of theFolder
    repeat with myfile in file_list
        set file_name to name of myfile
        set file_path to path of myfile
        log (file_path & "/" & file_name as string)
    end repeat

  • Get current RID path from file upload in KM

    Hi all,
    I wrote an customized upload application using upload ui element.
    The question is , how can I get the current RID Path when I trigger the WDJ upload action ?
    Thanks for your help. please.

    Hi,
    Here is some of examples from WDJ for uploading the files, please go thr below link i hope it will help you
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?QuickLink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/WDJava/KmuploadusingWebdynproapplication
    Thanks,
    Sreeni.

  • Should i use pipeline in order to get data from file path to create metadata?

    Hi,
    we use sharepoint 2013 to index file share and the folders structure represents data as project name / subject etc.
    Do you reccomend use pipeline capabilities in order to create metadata from those folders name? (so we will be able to use it as refiners later).
    In case so - how to do it?
    thanks
    keren tsur

    Hi  Keren,
    According to your description, my understanding is that you want to convert folder structure to SharePoint metadata.
    For achieving your demand, you can use the tool in codeplex:
    Folders To SharePoint Metadata Migrator (Folders2SP)
    Also you can have a look at the blog:
    http://en.community.dell.com/techcenter/sharepoint-for-all/w/wiki/5443.converting-folder-structure-to-sharepoint-metadata.aspx
    http://stackoverflow.com/questions/22411014/sharepoint-script-to-automatically-import-documents-from-a-network-share-on-a-r
    http://en.share-gate.com/blog/map-folder-names-to-sharepoint-metadata
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Weird problem while Extracting File path from file Browser item

    Hi all
    I followed some tutorials on this forum to get the absolute filepath from the filebrowser item and storing it in the database.
    Heres what I did. I created a script in the header of the page which reads like this:
    <script language="JavaScript1.1" type="text/javascript">
    function SaveFullName(filepath,feed)
    function getVal(item)
    if(document.getElementById(item).value != "")
    return document.getElementById(item).value;
    else
    return "";
    document.getElementById(filepath).VALUE = getVal(feed);
    alert(document.getElementById(filepath).VALUE);
    </script>
    I have call this function by this syntax which I have put in the onchange event handler of the file browser item.
    onChange="javascript:SaveFullName('CCDPATH','CCDFILEBROWSER');"
    Here CCDPATH is the name of the hidden item which I use to store the path and CCDFILEBROWSER is the name of the filebrowser in question.
    now the last statement of the script above, alert(), gives me an alert with the proper value. The problem is when I am trying to store the value of this variable CCDPATH in my database with an onsubmit process, NULL values are getting inserted :-(
    When I checked out in the debug mode, I can see that the value of this hidden item, CCDPATH is showing as "" , i.e; null. Why is this happening is out of my understanding.
    I mean, with the javascript, it is assigning and displaying its value perfectly, but when I try to store it with PLSQL, it simply does'nt happen.
    What am I possible doing wrong? What should I do to store the value of this hidden item in the database ??

    Any thoughts people?

  • How can I get path from af: inputFile or a uploadedFile

    Hi, there,
    I am getting error messages while sending attachment.
    I firstly tired getting the attachment from <af:inputFile> and attach it to the email. It failed. Then I put the file name directly into my code, still choose the same file from the <af:inputFile>, it failed again. However, from the code you can see, I can get system out println to print the file name, even the file content.
    I realized that I might need the file path, but I don't konw how I do get the path, should I write code in the backing bean of uploadedFile or in the send() in the Application Module ? How can I get the path?
    any advice is welcome and thank you very much!
    The system.out.println result is
    08/05/09 11:56:38 2javax.activation.FileDataSource@1674b36
    08/05/09 11:56:38 2.1 jkljlj
    08/05/09 11:56:38 2.2New Text Document.txt
    But the error message still says :
    nested exception is:
    class javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    java.io.FileNotFoundException: New Text Document.txt (The system cannot find the file specified)
    Here is my code:
    ViewObject issueView = getIssueView1();
    Row x = issueView.getCurrentRow();
    String fileName = "New Text Document.txt";
    System.out.println("1 " + fileName);
    System.out.println("1.5 " + x.getAttribute("attachmentName"));
    // msg.setText(body);
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(body);
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    // String attachmentName = (String)x.getAttribute("attachmentName");
    //if (attachmentName != null) {
    MimeBodyPart mbp2 = new MimeBodyPart();
    DataSource source = new FileDataSource(fileName);
    System.out.println("2" + source);
    System.out.println("2.1 " + x.getAttribute("attachment"));
    mbp2.setDataHandler(new DataHandler(source));
    //mbp2.setFileName(source.getName());
    mbp2.setFileName(fileName);
    System.out.println("2.2" + fileName);
    mp.addBodyPart(mbp2);
    msg.setContent(mp);
    // send the message!
    getDBTransaction().commit();
    Transport.send(msg);
    System.out.println("\nMail was sent successfully.");
    } catch (Exception e) {
    System.out.println("Error: " + e.getMessage());
    }

    I wish you and others like you would say what you are trying to do, not how you are trying to do it. That would save those who would like to help the trouble of figuring it out. However, I'm going to make a guess at what you are doing. Tell me if I'm right.
    You are writing a page that lets a user construct an e-mail message. I assume that the page has fields like: addressee, subject, and message. It also has a field, defined as an <af:inputFile> component for getting a file to be added as an attachment to the e-mail.
    You will want to look at forum posts and tutorials about how to upload a file. You will see that the "value" attribute of an <af:inputFile> will normally contain EL referencing a property of a backing bean which has the UploadedFile class. This class has methods for getting the filename, MIME content type, and an InputStream containing the data in the uploaded file. These pieces of information are all you need to add an attachment to an e-mail. You don't need the file's path, which is a good thing, since that information is not available to you.
    I've never used Javamail, so I can't tell you exactly how to use it, but I do understand the basics of sending e-mail. What you are going to do is create a multi-part message. The first part will be the message itself. Subsequent parts are the attachments. Each attachment can have it's filename and MIME content type set. Then you read the file through it's InputStream and write it to the message content. If the file contains binary data, you will need to pass it through a filter that will encode it to the Base64 format - which represents your data as 7 bit bytes.
    You will NOT be using the database connection or anything from the data controls to send an e-mail, unless you also need to save a copy to the database. The connection that is needed for e-mail is a connection to an SMTP service. Ask your e-mail administrator for some help with this.
    You MIGHT want to write most of this code in your Model project as a business component. Then your backing bean would probably just pass the fields as parameters.

  • Get Media From Files & Folders is Broken

    In premiere elements 9, whenever I go to organize, get media, files and folders, it takes 30 seconds to open the explorer window, and when it does it comes up blank. It still has the tabs on the side like recent places and desktop, but no matter what I click or do, it wont show any files or folders! What do I do?

    lillianstreet
    More questions to add to SG's questions....
    Are you running Premiere Elements 9 as the 9.0.1 Update?
    Do you have the latest version of QuickTime installed?
    Are you running the program as Run As Administrator or from a User Account with Administrative Privileges?
    Now that we have gotten the usual questions out of the way.....
    1. Is your video card driver up to date according to the web site of the manufacturer of the video card?
    2. If the video card driver is up to date, then delete the BadDrivers.txt file found in the Windows 7 or 8 64 bit path:
    Local Disc C
    Program Data
    Adobe
    Premiere Elements
    9
    and in the 9 Folder is the BadDrivers.txt file that you delete.
    Make sure that you are working with Folder Option Show Hidden Files, Folders, and Drives active so that you can see the complete path.
    3. We could try deleting the Adobe Premiere Elements Pref file or the whole folder that it exists
    Local Disc C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Premiere Elements
    9
    and in the 9 Folder is the Adobe Premiere Elemens Prefs file that you delete. Same comment as above regarding the Folder Option "Show Hidden Files, Folders, and Drives".
    4. After that comes the uninstall, run through of ccleaner, reinstall.
    We will be watching your progress and your replies to SG.
    Thanks.
    ATR
    With all those questions, I nearly forgot to ask "Is this a it never worked before issue" or "Did this work before but not now" type issue?

  • Get filename from file sender adapter

    Hi Experts,
    I have a question regarding the file/ftp adapter (sender).
    I have a directory with xml and pdf files. for every xml file there is a pdf file with the same filename. for example:
    file1.xml
    file1.pdf
    file2.xml
    file2.pdf
    file3.xml
    file3.pdf
    Now I want to read the xml file with the file sender adapter. afterwards I want to read the related pdf file. for example: If I read the file file1.xml afterwards I want to read the pdf file file1.pdf with the file sender adapter. For this it is nessessary to get the filename from the xml file so that I can read afterwards the pdf file. How can I realise it?
    Thanks and best regards
    Christopher

    Hi srinivas,
    thanks for your quick answer.
    That the file adapter is not able to read pdf files is clear to me. In this case I only want to transport the pdf. that works fine. I tested it.
    the problem is the following:
    I have a xml file with the name "file1.xml". I read the xml file with the sender file/ftp adapter configured with filename "*.xml". Then I want to import the pdf file with the name "file1.pdf". Therefor I need the filename from the xml file.do you know what I mean? So XI has to know the filename of the xml to import the pdf with the same name ...
    regards

  • Get Information From File Name

    Hi,
    I have a somewhat general question, is it possible to extract certain "elements" from a file name?
    For example: x0 xxx abc 123 xx xxxx.avi (or any type txt, jpg, and etc...).
    Assuming that the "abc" is constant throughout the files but the digits are changing (not sequential), can I extract just the "abc 123" (or whatever number it is)?
    I know how to strip/build path, but here I don't know what to search since the distance from the beginning is changing and the digits are changing.
    Thank you,
    Solved!
    Go to Solution.

    There are several string function that allow you to search for a string, and  break the string into several parts.
    Another option is using Regular Expression, yours sound like "abc/s[0-9]{3}", that should return the "abc 123" part.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

Maybe you are looking for

  • Is it possible to change the URL of displaytag's sortable function?

    Basically, I've got a jsp page with the displaytag code on it such as: <display:table name="result"> <display:column sortable="true" property="title" /> <display:column sortable="true" property="author" /> <display:column sortable="true" property="st

  • Sound / Speakerphone Not Working

    I have a new Pearl Flip 8230.  All of a sudden the sound/tones/speakerphone does not work.  I have gone through all the settings and can't seem to see what changed.  I can hear everything if I activate handset but when I activate speakerphone... I ge

  • New 10.4.8 Updates

    I don't know if its just 'me' or if the performance has actually been enhanced, but since I've installed the latest updates (10.4.8 included) my iMac 20 seems much faster both in overall performance and Internet access. Anyone else noticing the same?

  • [new-GL]How can I make "order" and "WBS" field visible in KSV7 or KSU7?

    Hi, I found that sender/reciever screen of KSV7 or KSU7 is different from that of KSV1 or KSU1. There were no fields to enter order and wbs in KSV7 and KSU7. How can I add those field in KSV7 and KSU7? I tried t-code GCA6 but couldn't find what to do

  • Error while PO

    hi all gurus, while PO system giving this error. Valuation area not defined system giving as diagnosis The valuation area defined for the plant is not defined in table T001k. system giving as procedure Check the assignment plant-valuation area in tab