How to open and display htm file in iexplore

Friends,
Lets say i have a .htm file and its in the location of C:\BAPI_CUSTOMER_GETSALESAREAS\SALESAREAS.HTML , now i want to open that file in internet explorer when some one click on a particular button this would be happend.
I write following code :
import java.io.*;
public class Test{
public static void main(String[] args){
try{
     String command = "cmd /c start C:\BAPI_CUSTOMER_GETSALESAREAS\SALESAREAS.HTML";
          Runtime.getRuntime().exec(command);
          /* Runtime rt = Runtime.getRuntime( );
          rt.exec( "IEXPLORE.EXE" );
          return;*/
}catch(Exception e){
     e.printStackTrace();
This will give me the error due to specifying the path of html pages, will you tell me how to achieve that.
Thanks.
Hitz

u hav't given escape seq in
String command = "cmd /c start C:\BAPI_CUSTOMER_GETSALESAREAS\SALESAREAS.HTML";replace all \ by \\ it wil work..
ie.
String command = "cmd /c start C:\\BAPI_CUSTOMER_GETSALESAREAS\\SALESAREAS.HTML";

Similar Messages

  • How to open and play .exe file in Mac?

    I am a new Mac user from of course Windows. I have a CD product catalogue which comes in a .exe format. There seemed no way that I can view the contents in Mac.
    Does anyone have any solution for this?
    Any help is most appreciate

    As Thomas A Reed points out, an exe file is a windows application. I don't know why a product catalog would be in an exe file but I suppose it's possible. It seems more likely that the exe file is an application that either downloads the catalog or opens and displays a disk file containing the catalog; in the latter case you may already have the actual product catalog on your disk drive. Your might try using Spotlight to search for files with names containing key words related to your product catalog name. You also could use Spotlight to search file contents for key words you may recall from the catalog contents. Finally, is this possible: Use your old Windows PC or borrow one and run your "product catalog." While it is running, check for an option to export the information you need to a file in a format (say, text) that is readable on your Mac.

  • How to open and read binary files?

    How do I open and read Binary files?

    Did you  look on The Unarchiver's web site where it has a link to older versions? http://theunarchiver.googlecode.com/files/TheUnarchiver3.2_legacy.zip
    The best thing to do is ask your friends what programs they used to produce these files, or at least what format files they are producing.  Otherwise it's like being shown a car and given a bundle of 200 keys with no idea to which one to use, or even if any of them work with that car.
    Using The Unarchiver will likely not do anything because it too will not know what format files are involved, and they may not even been in an archived format.  If they sent you a Word file without telling you (a favorite of Windows users to do  -- it drives me crazy when they could have just sent them in plain text), The Unarchiver won't open them.  If it's a picture file then using Hexedit will just show you a bunch of unintelligible stuff as shown in an earlier post, though you may see a line of text providing a hint.
    As I said earlier, often .bin may be an executable program which needs another program to actually interpret it.  That's what Java is trying to do.  Still, it may think it can execute the file, but it is highly unlikely somebody would send you an executable program (and if they did I would not trust it).  For all you know it may be a Windows virus.

  • How to open and display a powerpoint file.

    I'm working on an app that I would like to have open and view a powerpoint presentation. How would I go about doing this? Is there already some framework available that'll do it for me? Is there something that'll let me convert it to a pdf?
    thanks for any help

    And there may be, but you won't likely find that here. Do some time searching Google and maybe you'll find code that someone was nice enough to make freely available, although I wouldn't count on it. Were i a programmer and took the time to read those docs and write the code, I'd want to be paid for my time. But there are a lot of programmers who swear by freeware! You may get lucky.

  • Help, how to open and display blobs from tables

    Dear all,
    I am trying to store ms-word files on a table using a blob column.
    Does anyone how to open the files and display them from a form using 9iAS?
    Thank you.
    Carlos.

    And there may be, but you won't likely find that here. Do some time searching Google and maybe you'll find code that someone was nice enough to make freely available, although I wouldn't count on it. Were i a programmer and took the time to read those docs and write the code, I'd want to be paid for my time. But there are a lot of programmers who swear by freeware! You may get lucky.

  • Opening and Displaying PDF files

    I am currently wrinting and application to display a file. Does anyone know how to display a pdf file in a frame or any such thing? if you have the code or any idea how to do this please email it to me at [email protected]

    You can tryout the Open source PDFBox API
    The api has an class which extracts the text from the pdf document.
    It might help you.
    you can find it in
    http://sourceforge.net/projects/pdfbox/
    hope works

  • How to open and read many files from a directory and store contents in 2D array?

    I want to make a VI that opens and reads the data from various files contained in a directory (200 files each with 2 columns) and store these in a single 2D array. For file number 1 I want to store the data from both columns in the 2D array, but for files 2 to 200 I only want to store the second column of each file. Can someone please help?

    Hi Nadav,
    Thanks for your help. I have followed your instructions but i cannot get it to work. I used the LIST DIRECTORY to list the files in the directory - that works. However, how do I read each of the 200 files using READ FROM SPREADSHEET FILE without me having to manually select each of the 200 files? So, if I use LIST DIRECTORY to list all 200 files in an array, how do I get each of these to open and store the data in a 2D array? Here is what I have done (File called read_files.VI) Could you please help me? Thank you very much in advance.
    Attachments:
    read_files.vi ‏18 KB

  • How to open and edit CRP files?

    Hi,
    at my workplace I see the following folders:
    C:\Program Files\Novell\ZENworks\Asset Management\bin\UsageLogs
    In this folder I see secret files like: 20090115.CRP and 20090115-web.CRP
    Each days ZenWorks create this 2 files.
    How can I open and edit it? Which software have to install at home for check it? I'm interested in very much what contain this files...
    Thanks,
    Gery

    Those files would be software usage metering files. There is no software to the best of my knowledge that opens those files. They are loaded automatically by the collection server into the database.

  • Mount time machine, how to open and recover .inprogress file

    so this is how i fixed and mounted a time machine capsule ( it was extended journaled Case-sensitive) to MacBook Pro ( non-case sensitive) and recovered files from .inprogress file. for me it worked like a charm and lets see if this can help you too.
    Found a way to figure it out! (mount drive). So I went to my gf's laptop and created a new backup file for her ( just the file or a new sparsebundle.  the info.plist , token and info.bckup are the files that we need from here ). If no mac is available, create a new backup in pc but it has to be to the same time capsule  ( the files that we need and create will point and tell the sparse bundle a new path to time capsule ) To het there you go to the sparse bundle Dmg, right click and go to "show contents". So this is how i change it, I open 2 finder windows and got each sparse bundle in it ( old one or damaged and new one), righ click on both > show contents and then  replace these files from the new one to the damaged one (  info.plist , token and info.bckup ). That's it. The time machine at least mounted on my desktop and could see the files. Now for opening the .inprogress file; go to Automator >new workflow > and drag in this order;  get selected finder items, get folder contents and open finder items. While the .inprogress file i selected, press "run" or play button in Automator. That's it. Now you may try to drag to desktop but it will say "the volume has the wrong case sensitive for a backup" but you should have access. Now for copying or move to somewhere; get another hard drive ( external) and format it to the same as time capsule ( extended journaled case sensitive is my case), once it's done, right click and go to info> at the bottom uncheck "ignore ownership" and close it. Now you can copy from .inprogress file to just formatted hard drive and from hard drive to laptop. Here's the annoying part; it will treat it as a special folder ( when you paste it in you desktop it's gonna ask for password, if you wanna move it somewhere else it's going to do it as well. But at least you can recover the file ) . once this process It's done just reformat your time capsule.
    Cheers,

    well, after you transfer everything to new hard drive and to avoid the putting a password everytime you move the folders, richt click on drive > get info > check again the "ignore ownership" option and you shouldnt have any problems transfering back folders

  • How to get and display image file through servlet

    If I've got a jpg file on the server..
    How can I use servlet to return that image via the following calling method
    /displayfile?filename=image.jpg
    the image.jpg in the server will return
    I know that I need to set the content type to image/jpeg
    after that, how can I return the image file to browser?

    - Get the "file" Parameter from the URL QueryString
    - check if the File specified exists on your filesystem
    - read in the jpg from the file (best would be binary)
    - set the right Mime Type (as you already wrote)
    - write the filecontent to the ServletOutput as you would do with any other content
    - that's it.

  • How to open and edit "*.txt" file with "Notepad"

    Hello guys!
    I'm facing problem with SharePoint 2010 Enterprise and got no clue how to solve it.
    What I want to do is to open "*.txt" (which is placed to "Documents Library") in "Notepad", so I could edit it and save (publish) directly to SharePoint from "Notepad".
    If I upload any Microsoft office File, such as "*.docx", "*.xls", etc - it works as it should - document opens in appropriate application and everybody is happy.
    But, when I create documents library, put some "*.txt" file there and click on it - it opens in new browser's tab as text, so I cannot edit the file.
    What I tried to do is to activate feature "Open Documents in Client Applications by Default" - not happy.
    Edit "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\DOCICON.XML" - I've modified "txt" entry as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <DocIcons>
        <ByProgID>
        </ByProgID>
        <ByExtension>
    <Mapping Key="txt" Value="ictxt.gif" EditText="Notepad" OpenControl="SharePoint.OpenDocuments"/>
        </ByExtension>
        <Default>
            <Mapping Value="icgen.gif"/>
        </Default>
    </DocIcons>
    Still not happy.
    So, how do I make this stuff work?

    Found this link which has more information on this scenario:
    http://sharepoint.stackexchange.com/questions/1427/open-txt-file-in-notepad-from-sharepoint
    A programmatic workaround:
    http://weblogs.asp.net/bsimser/archive/2005/01/24/359911.aspx
    Andrew Milsark, MCITP,MCTS
    Fpweb.net - The SharePoint Hosting Pioneer
    Blog : http://blog.fpweb.net
    Twitter : http://www.twitter.com/amilsark

  • How to open and display and mail archive folder?

    We were running Novell and GW for a number of years. Recently, we have migrated to Microsoft and Outlook. We have a number of GW archive folders that I now want to access. I understood that I could retain an installation of GW on my PC and although no longer connected to the server, I should be able to browse and open the archive, to retrieve these emails
    Have tried this, but they dont display. When I go to check mailbox size, it is seeing data as the it reads the same file size as the folder of archived email - so I think they are there somewhere!
    Any suggestions please??

    On 3/14/2013 5:46 AM, jason zaccaria wrote:
    >
    > We were running Novell and GW for a number of years. Recently, we have
    > migrated to Microsoft and Outlook. We have a number of GW archive
    > folders that I now want to access. I understood that I could retain an
    > installation of GW on my PC and although no longer connected to the
    > server, I should be able to browse and open the archive, to retrieve
    > these emails
    >
    > Have tried this, but they dont display. When I go to check mailbox
    > size, it is seeing data as the it reads the same file size as the folder
    > of archived email - so I think they are there somewhere!
    >
    > Any suggestions please??
    >
    >
    provide more information. It should work. But only if you installed GW
    in remote or caching mode.

  • How to format and display xml file as displayed in IE

    I want to display the xml file as it is displayed in Internet Explorer. Which component I should use and how?
    Thanks in advance
    Sachin

    You mean you want to see the XML source?
    You need to replace the characters '<' and '&' with corresponding entities '&lt;' and '&amp;'. You can use replaceAll, but do the ampersands first.
    Then I suggest you probably want to put them in a <PRE> block.

  • How to open and winzip repair file?

    I have a problem. Zip archiv write error: unexpected end of file during unpacking on 60 %.

    The program has a standard 7zip restore function, try using it or try to open with Winrar. 
    You can use the recovery files (the menu WinRAR> Operations> Restore archive) or call the same function key combination <Alt + R>. Restore to WinRAR is permissible only files compressed in archives in RAR and ZIP.
    If none of this does not help you, use Zip Repair Toolbox
    http://www.zip.repairtoolbox.com/

  • Download pdf = how to open and not save file

    hi
    in my app i have to download a file. at the beginning the file is called with blazeds as a ByteArray.
    var saveReference:FileReference = new FileReference();
    saveReference.save(pdfByteArray, 'Report.pdf');
    i like to open an application associated on the Operation System when the user download the file. eg download the report.pdf => the pdf reader opens.
    i tried hard but could not find a way to force this, in my app the save file dialog opens.
    the only report similar to mine i could find:
    http://stackoverflow.com/questions/569350/flex-filereference-download-is-it-possible-to-op en-associated-application/569596
    maybe you could help me. thanks
    joe

    Don't think it's possible, due to security reasons (instantly being able to run a downloaded file spells out massive problems).
    there is a topic here:
    http://www.justskins.com/forums/download-file-open-pdf-from-flex-ui-87457.html
    which seems similar to yours.
    As they say in that topic though, you could just have a link that opens a new window to the PDF.

Maybe you are looking for

  • Can modprobe.d conf files be multiline?

    Hey i've created a fglrx.conf file which has two lines, one which blacklists radeon and one that load the fglrx module. However, I get the following output, so it doesn't seem to happy libkmod: kmod_config_parse: /etc/modprobe.d/fglrx.conf line 2: ig

  • No Single batch split item created in delivery during picking

    Hello, When there is only one batch split item, SD_DELIVERY_UPDATE_PICKING is not creating batch split item (90001) if delivery quantity is equal or less than picking quantity...I didi search for SAP Note (1360407) and found one which is applicable o

  • SWF blinks as browser opens new page

    It looks like there is no way to have a swf on each page which does not have to disappear with the old page before the new page is rendered - resulting in a "blink". Is that so? If that is the case, what is the best way to keep Flash functionality on

  • Attributes Web Services

    Hi, Some pre-defined, and any custom-created, attributes are not visible/editable in the Attributes web services method. Why is this, and how do we fix it so they are? Thanks

  • ALV_Cell_Highlight

    Hi I want to highlight a particular cell in my ALV Grid display. Is it possible? If yes, please tell me how can I do that? Thank You