Open http:// file from command line?

Open http:// file from command line?

40
Basic UserBasic User
40

    Jan 04, 2008#1

    Hi and happy new year!

    If I type a URL in the File -> Open box, UE gets and displays the file.

    Is there a way to do the same from command line? E.g
    uedit32.exe "http://ultraedit.com"
    When I try it tells me path is not valid, but maybe there is some trick.

    Thanks

    262
    MasterMaster
    262

      Jan 04, 2008#2

      The only reason why it works in "File - Open" is because it is a windows dialog. UE itself can only open files from local file system and mapped network drives.

      If you want to work from the command line, use a command line tool to fetch the html document and pipe it/put it into a local file. Then open this file with UE. Place it all in a BAT-file.

      Example using cURL:

      curl -o c:\temp\temp.html http://www.mysite.com
      uedit32 c:\temp\temp.html


      (You might want to google for "create unique filename dos" to make it more flexible).

      40
      Basic UserBasic User
      40

        Jan 05, 2008#3

        thanks a lot!
        I was not aware of this nice tool.

        Don't know how to send a parameter to a .bat file, so created a .vbs instead.