UltraEdit Mobile: Associate a filetype

General and specific configuration/INI settings

UltraEdit Mobile: Associate a filetype

Postby h.bunjes » Tue Jun 02, 2009 7:04 am

I licensed UltraEdit mobile. On my main computer I always plug in my USB stick which contains UE mobile. On this computer I want to have this UEMobile started whenever a file of a specific type is opened (double clicked). I understand the concept of windows filetype associations.

My problem is:
When I open a console and type:
Code: Select all
C:\>"C:\Programme\Windows NT\Zubehör\wordpad.exe" c:\boot.ini

then wordpad is started and boot.ini is loaded.

but when I type:
Code: Select all
C:\>"E:\5_portable\UltraEdit Portable\UltraEditPortable.exe" c:\boot.ini

then UEMobile is started but boot.ini is not loaded.

Why?
How do I start UEMobile and pass it the name of the file to be loaded?

When this question is answered the configuration of the filetype association should be straitforward.
User avatar
h.bunjes
Newbie
 
Posts: 8
Joined: Thu Feb 10, 2005 12:00 am

Re: UltraEdit Mobile: Associate a filetype

Postby Mofi » Tue Jun 02, 2009 10:21 am

Don't have UEP yet, but take a look at http://www.ultraedit.com/forums/viewtopic.php?f=2&t=7868 where some users discussed already how to associate files with UEP.

I don't see a reason why it should not work what you tried. I just would not try it with C:\boot.ini which is a protect system file. Maybe you tried it on Vista and maybe Vista is blocking it to be opened from an application on a removable drive. Applications started from a removable drive have not the same permissions as applications started from local fixed drives, especially on Windows Vista. Maybe you have to change some security settings. But maybe I'm completely wrong with everything I have written in this paragraph.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4064
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: UltraEdit Mobile: Associate a filetype

Postby h.bunjes » Tue Jun 02, 2009 10:51 am

Thanks for the prompt answer
I had read that article before posting this.
I'm using XP with all updates installed.

In response to your answer I created c:\test.txt and and copied the UEMobile to drive C and typed
Code: Select all
C:\>"c:\Programme\UltraEdit Portable\UltraEditPortable.exe" C:\test.txt

Same behaviour. UEMobile starts, but it starts with the project I last used and not with the file I gave as the first command line parameter.
User avatar
h.bunjes
Newbie
 
Posts: 8
Joined: Thu Feb 10, 2005 12:00 am

Re: UltraEdit Mobile: Associate a filetype

Postby Mofi » Tue Jun 02, 2009 11:06 am

Ah, now I understand. You have enabled the option to remember and reload last opened file and last opened file was a project file. In this case the file on the command line is opened first, then the project file is loaded which causes to close all currently opened files and loads the last opened files of the project.

Uncheck the configuration setting File Handling - Advanced - Open from Explorer also opens files list
or uncheck the configuration setting File Handling - Load - Reload files previously open on startup
or uncheck the configuration setting File Handling - Miscellaneous - Close all files when opening or switching projects

See help for these 3 options for details.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4064
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: UltraEdit Mobile: Associate a filetype

Postby h.bunjes » Tue Jun 02, 2009 11:21 am

uncheck the configuration setting File Handling - Load - Reload files previously open on startup

Done.
Now UEMobile is started with only one open file named "Edit1" but still not with the wanted "test.txt".

Uncheck the configuration setting File Handling - Advanced - Open from Explorer also opens files list

Done additionally. No change.

uncheck the configuration setting File Handling - Miscellaneous - Close all files when opening or switching projects

Done additionally; now all 3 options are unchecked. Still: "Edit1" but not "test.txt".
User avatar
h.bunjes
Newbie
 
Posts: 8
Joined: Thu Feb 10, 2005 12:00 am

Re: UltraEdit Mobile: Associate a filetype

Postby mwb1100 » Tue Jun 02, 2009 2:57 pm

"UltraEditPortable.exe" is the plugin for the PortableApps environment.

"uep.exe" is the actual editor application.

So I think you want to do something like:

Code: Select all
"c:\Programme\UltraEdit Portable\app\UltraEdit\uep.exe" C:\test.txt
User avatar
mwb1100
Basic User
Basic User
 
Posts: 46
Joined: Tue Nov 21, 2006 12:00 am

Re: UltraEdit Mobile: Associate a filetype

Postby h.bunjes » Wed Jun 03, 2009 3:02 am

Thank you!

That was it. That really was great help.
I wish you a wonderful day.
User avatar
h.bunjes
Newbie
 
Posts: 8
Joined: Thu Feb 10, 2005 12:00 am

Re: UltraEdit Mobile: Associate a filetype

Postby mjcarman » Wed Jun 03, 2009 11:48 am

UltraEditPortable.exe is the launcher. You should use when running it off a flash drive. It exists for a reason. The problem appears to be that the launcher doesn't correctly pass through command line options to uep.exe. You should file a bug report to IDM.
User avatar
mjcarman
Power User
Power User
 
Posts: 125
Joined: Thu Feb 10, 2005 12:00 am

Re: UltraEdit Mobile: Associate a filetype

Postby h.bunjes » Thu Jun 04, 2009 4:43 am

I filed a bug report to IDM.
User avatar
h.bunjes
Newbie
 
Posts: 8
Joined: Thu Feb 10, 2005 12:00 am

Re: UltraEdit Mobile: Associate a filetype

Postby chris_go » Mon Jul 27, 2009 7:58 am

Hi all,

you may try this third party UEM launcher.
Works for me.

http://usb.smithtech.us/apps/downloads/UltraEdit.exe

Instructions:

1. Download the EXE
2. Run the selfextracting archive (Run the Exe)
3. Go top the subdir "source" and change the filename of the Uedit mobile EXE to uep.exe
4. Compile the source with the NSIS portable from http://usb.smithtech.us/apps/index.php
5. Copy the new laucher to the portableapps-dir

In fact the line in the .nsis sourcefile has to read:

!define EXE "uep.exe" ; insert program exe name, e.g. "testapp.exe"

Regards

Chris
chris_go
Newbie
 
Posts: 4
Joined: Mon Jul 27, 2009 7:48 am

Re: UltraEdit Mobile: Associate a filetype

Postby chris_go » Sun Oct 11, 2009 7:24 am

Hi all,

I just downloaded the new version 15.20 of UltraEdit Mobile.
Now the launcher handles command line parameters and passes them through to the uep.exe.

Now you can add a link to the "Send To" folder targeting the "UltraEditPortable.exe".
This will allow opening a file via right clicking on it in the Windows Explorer choosing >>Send To/UltraEdit Portable<<

That was what I was waiting for. :-)

Regards an Thank you IDM

Chris
chris_go
Newbie
 
Posts: 4
Joined: Mon Jul 27, 2009 7:48 am


Return to Configuration/INI Settings