Webutil- How to open text file by using Wordpad

Hello:
Is it possible to open the text file either from client or server (sun) by using the wordpad? I was able to open it with Notepad; however, it was given the rigth format such as new line.
WEBUTIL_HOST.NONBLOCKING('CMD /C NOTEPAD'||:input_select.file_name);
Thanks in advance for anyhelp.
TD

Thanks Phuong. I try it, but still does not work. I have tried the followings:
CLIENT_HOST('CMD/C START "editor" C:\Program Files\Windows NT\Accessories\wordpad.exe D:\temp\out.txt' );
CLIENT_HOST('CMD/C START "editor" wordpad.exe D:\temp\out.txt' );
WEBUTIL_HOST.NONBLOCKING('CMD /C C:\Program Files\Windows NT\Accessories\wordpad.exe D:\temp\out.txt');
--trang                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to open illustrator file (.ai) using Indesign and save it as XML

    I know how to open a Illustrator file (.ai) in Indesign.
    It would be like :
    1 ) Save your Illustrator file as AI. This Native format is most compatible with InDesign.
    2 )  Go to -> InDesign, click on your document using your  Frame Rectangle tool (the one with the X through it).
    3 )  Fill in the desired size (can be adjusted later).
    5 ) Go to File menu > Place.
    6 )  Find and select the Illustrator file in the window that opens.
    7 ) Click the Open button.
    Adjust size, & position of your image using the Direct Selection tool (white arrow), and the cropping with the Seclection tool (black arrow.
    Now I want to save this file as XML.
    After that,  I say
    1 )  File -> Export
    But this file saves as XML only shows he the root element nothing else.
    Every time , this shows like
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Root></Root>
    Nothing is there as contents.
    Can anyone let me know, is it possible to store .AI file as XML.
    My requirement is simple, i want to store the .ai file as XML.
    Some how I am using Indesign to do so . Can any body help.
    Thanks,

    Copy and paste is again seems same as 'Place the file'  , it wouldn't help again.
    Copy( from Illustrator) and paste( it in Indesign) and  later saving\exporting as XML again create the same the XML file with no data . Just a XML structure,
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <Root />
    RRegarding using the FXG and SVG file .. saving these formats to XML does not shows the Co-ordinates in XML formats.
    I do I would like to have the coordinates (x,y) so that later on , if required I can change the coordinates and display the Image or Text in the file. As this is a requirement for business card.
    A

  • How to read text file by using jfilechooser

    please check for me.. tbrowse is textfield, the file path n name are x dispaly at tBrowse. past is my class.
    public void actionPerformed( ActionEvent e )
    if (e.getSource() == btnBrowse)
    try
    FileReader in = null;
    if (Chooser.showOpenDialog(past.this)== JFileChooser.APPROVE_OPTION)
    File selectedFile = Chooser.getSelectedFile();
    in = new FileReader(selectedFile);
    tBrowse.setText(selectedFile.getPath());
    catch (IOException exception)
         System.out.println("Error processing file: " + exception);
    Message was edited by:
    fifa1509

    Does it compile? Does it do what you want when you run it?
    If you have a problem, say what that problem is (cut and paste any
    compiler error message).
    One small point is that you could actually print the stack trace as this
    will be much more informative if you have a problem.catch (IOException exception)
        exception.printStackTrace();
    }

  • Error in opening text file in JSF

    Hello,
    I am developing a Web application using JavaServer Faces Beta Version 1.0 and the Web application needs to open a text file. I used a Java class called by a backingbean class to open the text file.
    The problem is that the system cannot find and read the text file.
    The system shows the following errors.
    Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: javax.faces.el.EvaluationException: java.lang.RuntimeException: Could not
    read text file test.txt: java.io.FileNotFoundException: test.txt (The system cannot find the file specified)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:207)
    root cause
    javax.faces.FacesException: javax.faces.el.EvaluationException: java.lang.RuntimeException: Could not read
    text file test.txt: java.io.FileNotFoundException: test.txt (The system cannot find the file specified)
         com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:83)
         javax.faces.event.ActionEvent.processListener(ActionEvent.java:57)
         javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:974)
         javax.faces.component.UICommand.broadcast(UICommand.java:274)
         javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:217)
         javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:316)
         com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:80)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:171)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:196)
    note The full stack trace of the root cause is available in the Tomcat logs.
    I would like to ask how to open text file in the JSF framework.
    Thank you in advance.
    regards,
    oscar

    This is not a JavaServer Faces related issue. Anytime you try to open disk files in a web application, you need to use absolute pathnames. You have no control over what the current directory of our servlet container is set to.
    If the file you're reading is actually inside your web application (say, "test.txt" is in a subdirectory "files" ), you can get access to an input stream for it, in a portable way, by calling the getResourceAsStream() method on ServletContext. From an event handler, that might look like this:
      ServletContext sc = (ServletContext) FacesContext.getCurrentInstance().
        getExternalContext().getContext();
      InputStream stream = sc.getResourceAsStream("/files/test.txt");Craig McClanahan

  • How to open a text file without using dialog box

    I can open a file using dialog box but I want to open a file without using any dialog box for writing.
    With the following commands a new file is created.
    File outputFile = new File("outagain.txt");
    FileWriter out = new FileWriter(outputFile);
    I want to open an existing file and put some more text in it using FileWriter or any other object
    rgds,
    Arsalan

    import java.io.*;
    class UReader
        BufferedReader in;
        BufferedReader input;
        String fileName;
        public UReader(String fileName)
            this.fileName = null;
            this.fileName = fileName;
            try
                in = new BufferedReader(new FileReader(fileName));
                input = new BufferedReader(new FileReader("A.b"));
            catch(IOException _ex) { }
        public final String getContent()
            String txt = "";
            try
                while(in.ready())
                    txt = txt + in.readLine();
                    txt = txt + "\n";
                in.close();
                txt.trim();
            catch(IOException _ex) { }
            return txt;
        public final String getLine(int row)
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            if(row <= getRows()) {
                try
                    for(int i = 0; i < row; i++)
                        txt = input.readLine();
                    input.close();
                catch(IOException _ex) { }
            } else {
                txt = "Index out of Bounds";
            return txt;
        public final int getRows()
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            int rows = 0;
            try
                while(input.ready())
                    txt = input.readLine();
                    rows++;
                input.close();
            catch(IOException _ex) { }
            return rows;
    import java.io.*;
    import java.util.*;
    class UWriter
        PrintWriter out;
        String fileName;
        String[] txt;
        static int NEW_LINE = 1;
        static int APPEND = 0;
        public UWriter(String s)
            fileName = null;
            txt = null;
            fileName = s;
            try
                out = new PrintWriter(new BufferedWriter(new FileWriter(s, true)));
            catch(IOException ioexception) { }
        public final void addContent(String s, int i)
            int l = 0;
            StringBuffer sb = new StringBuffer(s);
            s.replaceAll("\n\n", "\n###\n");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            if(i == 0) {
                try
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception) { }
            } else {
                try
                    out.println();
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception1) { }
        public final void writeContent(String s)
            int l = 0;
            s.replaceAll("\n\n", "###");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            try
                PrintWriter bufferedwriter = new PrintWriter(new BufferedWriter(new FileWriter(fileName, false)));
                for (int j = 0; j < txt.length; ++j) {
                    bufferedwriter.println(txt[j]);
                bufferedwriter.close();
            catch(IOException ioexception) { }
    }Maybe they are not the best codes, i wrote them a long time ago, so dont ask why i did anything wierd. :D
    But anyway it works.

  • How to open/read file using Java in Unix?

    Hi Friends,
    Can you please help me out how to open/read file using java in unix os? I have create one text file in "/home/test.txt" in unix environment. How to open the same file & read using java code?
    - Hiren Modi

    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • HT4796 I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    Send it as a PDF.

  • How to open PSD file recieved via email on iPad using Photoshop Touch without Creative Cloud?

    Hi, how to open PSD file recieved via email on iPad using Photoshop Touch without the need of using Creative Cloud? Thanks.

    Hi Super Nemo
    Currently the only way to open psd files on Photoshop touch is via the creative cloud. Also, the layers you created from Photoshop on your desktop machine will be flattened when opened with Photoshop touch on your iPad. But you can retain the layers from the touch app when opening the psdx file on your desktop photoshop.
    This link might help you: http://forums.adobe.com/docs/DOC-1336
    -Sharon

  • How to open .dll files?

    I'm not sure I have the correct forum, but I thought I'd try here.
    I have .dll files I want to look at. I am unable to open them in any type of readable format. When I double click on them they open in Text Edit and jumbled up. I tried to open them in Preview and that didn't work either.
    Can someone guide me on how to open these files? OR if this is the wrong board, let me know and I'll post some place else.
    Thanks,
    Ginger

    No. A Windows DLL file is a library of machine code meant to be loaded by a piece of software. It's unreadable by humans. An experienced developer may be able to decompile the library into x86 assembly language.
    DICOM is an image format used for storing medical image data (such as MRIs, CAT scans, etc.). Many packages that work with DICOM packages have an "export to CD" function that will burn a CD with a directory of DICOM images, optionally with a copy of a program for displaying the images. It sounds like you have one of those CDs that's been burned with a copy of a Windows DICOM viewer. You won't be able to use that without a copy of Windows installed.
    However, that doesn't mean that you can't view the DICOM images. The most widely used DICOM viewer is probably [OsiriX|http://www.osirix-viewer.com>, which is free to download and use. Simple install, and use the import function to load a whole directory of DICOM images at once.

  • How to write text file in Shockwave?

    Does anybody know how to write text file in Shockwave to
    user's disk?
    Thanks in advance.

    Those Xtras can wreak to much havoc when used with the wrong
    intent.
    What you can do is write with setpref and store a list of
    saves and the
    saves itself seperatly. Then you'd have to build your own
    save/open
    dialog to let the user:
    * pick a previously saved file to load or overwrite
    * have the user type the name of a new file to save.
    Only thing that remains is that the user cannot decide where
    the files
    are saved.
    Manno
    SiuLinda wrote:
    > Thanks a lot for your reply.
    > Yes, cookies is good but I have to write a program to
    save the text file in
    > where the user wants, user can open these files later if
    they like, like using
    > Filextra and Fileio, but I found all of these xtras seem
    to be not supported in
    > shockwave.
    >
    Manno Bult
    [email protected]

  • How to open a file created at the server through form/report at client end

    How to open a file created at the server through form/report at client end
    Dear Sir/Madame,
    I am creating a exception report at the server-end using utl file utility. I want to display this report at the client end. A user doesn't have any access to server. Will u please write me the solution and oblige me.
    Thanks
    Rajesh Jain

    One way of doing this is to write a PL/SQL procedure that uses UTL_FILE to read the file and DBMS_OUTPUT to display the contents to the users.
    Cheers, APC

  • How to open PDF files in Safari

    How does one open PDF files when using Safari

    Typically, you click on a link to a pdf file, and they open. If for some reason that's not working, you can right click on the link and download the file, then it should open in Preview, or Adobe Reader if you've installed that.
    What exactly are you trying to open, and what's happening when you try it?

  • How to open *.pdf files in BOXI r2 inbox

    I am scheduling as  *.pdf file for deski report.After scheduling i am getting *.pdf in my inbox.if the report is deski or webi we can use FC_REPORT_ENGINE or WI_REPORT_ENGINE to open the report's using java code.In same way how to open *.PDF file in Inbox?
    Edited by: ramkishore kishore on Nov 7, 2008 8:31 AM
    Edited by: ramkishore kishore on Nov 7, 2008 8:31 AM

    Hi Ram,
    Following information might help you to resolve the issue.
    After logging into Desktop Intelligence, you may be presented with a message stating:
    u201CYou have received 1 document from users"
    Examining the Inbox from within the Desktop Intelligence client shows no objects visible in your Inbox.
    The object in your Inbox is in a format other than Desktop Intelligence format such as, PDF, XLS or other format. Therefore the object is not recognized by the Desktop Intelligence client inbox browser.
    Log in to Info View or the Central Management Console, browse to your Inbox and verify the file name and format that has been sent to your Inbox. The object may be saved, copied, moved or deleted as necessary.
    Regards,
    Sarbhjeet Kaur

  • How to open NRW-files in Lightroom 4?I

    just bought Nikon's Coolpix P7800. It says you can shoot in Raw. Now I want to open these files in LR, just like I'm used to with my SLR's. But Nikon uses the NRW-format for Raw and LR says it doesn't recognise the files. Does someone know if there's a way to convert and work with these files in LR 4?

    Thanks Jim for your response,
    I will upgrade to 5.3
    Kind regardsEut van Berkum
         Op woensdag 28 januari 17:04 2015 schreef JimHess <[email protected]> het volgende:
    how to open NRW-files in Lightroom 4?I
    created by JimHess in Photoshop Lightroom - View the full discussionThe only way to use those files with Lightroom 4 is to convert them to DNG using DNG converter 8.3 or higher. The camera wasn't supported in Lightroom until version 5.3. If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7140310#7140310 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7140310#7140310 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Photoshop Lightroom by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Open text files & save as worksheets in excel with Automator?

    hi,
    i'm an Automator newbie and i'll admit upfront i don't know apple script. i have a bunch of text files that i'd like to open in excel. the basic actions would be to tell excel to look for 'all documents' and to open as space delimited. then i want to save the files as excel spreadsheets rather than txt files.
    i assume i need to use some combination of applescript and automator to do this, but i don't even know where to start. it seems this is something simple someone might have already written a script/action for. is there a repository of such things anywhere? if not, does anyone want to help me through the process of creating such an action?
    thanks,
    jill
    PB G4 1.5GHz, dual PM G5   Mac OS X (10.4.7)   airport, bluetooth

    jill,
    Here is a solution.
    Create an Automator workflow with the following actions:
    1) Get Specified Finder Items (specify the folder containing your space delimited text files)
    2) Get Folder Contents
    3) Run AppleScript (delete all of the text in the action, click on the link below which will put the AppleScript into Script Editor, select the whole thing, copy it to the Clipboard, paste it into the action)
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    repeat with aTextFile in input
    set theTextFilePath to aTextFile as string
    tell application "Microsoft Excel"
    open text file filename theTextFilePath data type delimited with space
    set theWorkbook to last workbook
    set thePath to path of last workbook
    set theOriginalWorkbookName to name of last workbook
    set theNewWorkbookName to ((characters 1 through -5 of theOriginalWorkbookName) as string) & ".xls"
    set theNewFilePath to thePath & ":" & theNewWorkbookName
    save workbook as theWorkbook filename theNewFilePath file format workbook normal file format
    close theWorkbook saving no
    end tell
    end repeat
    return input
    end run</pre>
    I am assuming that the text files are the only files in the folder. If they are not then some further filtering will be required likely through inserting a Filter Finder Items action after step 2).
    PowerBook 12"   Mac OS X (10.4.7)  

Maybe you are looking for

  • Setting up wirless broadband for apple and pc laptops?

    My present setup is fully wired broadband with ISP providing 1Mb max speed. We want to go wireless, with 2 apple laptops and 1 pc laptop in the house, but keeping our hardwired iMac. I understand that I need an ADSL wireless modem/router, which will

  • Can I map a drum pad to Tap Pad in Delay Designer?

    Hello Everyone, I am trying to map a drum pad (M-Audio Trigger Finger) to the Tap Pad in Delay Designer using MainStage. For some reason MainStage will not let me map a Drum Pad screen control to the Tap Pad on the plugin. The screen control inspecto

  • "No photos in selected Folder" message - but there ARE photos in the selected folder.

    LR is not recognizing the photos in the folders.  I click on the question marks to locate the files, select the folder/photos on the external hard drive, and all the previews disapper in LR and it gives me the "no photos in selected folder" error mes

  • End of Stream has been reached error CS4

    After transcoding the main video file during the build, Encore then prepares "Planning audio for movie" at which case the error "end of stream has been reached" pop up window appears and the burn subsequently fails. There are no errors within the pro

  • Spawning new process Labview 8, and setting frontpanel

    I currently have a snippet of code (its messy I'm testing concepts). That attempts to launch a sub-VI to run in parellel, and communicate back a moving average of the value it collects (though legacy DAQ). The two VI's communicate via a notifier. I c