Open a new named file in UltraEdit from a 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 a new named file in UltraEdit from a command line?

Postby rpardee » Fri May 28, 2010 7:20 pm

Hey All,

The editors TextMate and 'e' both include little utility programs that let you launch them and optionally open/create a file from the command line. So you can say, e.g., 'tm new_file.txt' at a command prompt & TextMate creates new_file.txt & opens it up for editing. Very convenient.

Is there any similar feature for UltraEdit? I'd like to be able to type for example 'ue myfile.txt' to open myfile.txt in UltraEdit.

Thanks!

-Roy
User avatar
rpardee
Basic User
Basic User
 
Posts: 14
Joined: Sun Sep 19, 2004 11:00 pm

Re: Open a new named file in UltraEdit from a command line?

Postby Mofi » Sat May 29, 2010 12:34 pm

Yes, this is possible. Just type uedit32 myfile.txt. But the program directory of UltraEdit must be defined in environment variable PATH. This is by default the case.

Alternatively you can create a batch file in the Windows directory named ue.bat which contains following line:

"Path of UltraEdit program directory\uedit32.exe" %1

Then you can type ue myfile.txt and the UltraEdit program directory need not be defined in environment variable PATH.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Open a new named file in UltraEdit from a command line?

Postby rpardee » Tue Jun 01, 2010 11:29 am

Very cool--that will serve me. Many thanks.
User avatar
rpardee
Basic User
Basic User
 
Posts: 14
Joined: Sun Sep 19, 2004 11:00 pm


Return to UltraEdit General Discussion

cron