Open http:// file from command line?

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Open http:// file from command line?

Postby hveld » Fri Jan 04, 2008 12:48 pm

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
User avatar
hveld
Basic User
Basic User
 
Posts: 42
Joined: Tue Nov 16, 2004 12:00 am

Re: Open http:// file from command line?

Postby jorrasdk » Fri Jan 04, 2008 2:25 pm

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).
User avatar
jorrasdk
Master
Master
 
Posts: 275
Joined: Mon Mar 19, 2007 11:00 pm
Location: Denmark

Re: Open http:// file from command line?

Postby hveld » Fri Jan 04, 2008 11:17 pm

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.
User avatar
hveld
Basic User
Basic User
 
Posts: 42
Joined: Tue Nov 16, 2004 12:00 am


Return to UltraEdit General Discussion