Is it possible to autoload a project?

Project, workspace, and file management issues

Is it possible to autoload a project?

Postby chrabros » Sat Jan 13, 2007 9:09 am

Hello,
is there a way how to autoload a project when UltraEdit starts?
I have a project with the files I frequently use and I would
like to get it loaded everytime I start UltraEdit.

(I use it as a replacement for Favorite Files as project window
can be displayed in the left area of UE window, but Favorite Files
is just a dialog which cannot be moved into the pane).

Thanks
Dalibor
User avatar
chrabros
Basic User
Basic User
 
Posts: 11
Joined: Sat Dec 03, 2005 12:00 am

Re: Is is possible to autoload a project?

Postby Mofi » Sat Jan 13, 2007 2:42 pm

Yes, if you enable in the configuration dialog at section File Handling the settings

  • Advanced - Open from Explorer also opens files list and
  • Load - Reload files previously open on startup.
This works with UE v12.20b+1, but it does not work with UE v11.20a (Win98). With v11.20a UE starts, opens the last opened project files and immediately exits when a file is specified also on the command line (= double clicked in Windows Explorer).

A solution which always works even for v11.20a is to not use the 2 options above and specify on the command line first the project file with full path in double quotes and then optionally the file to open. But this solution means you have to modify all shortcuts to uedit32.exe in LNK files and also in registry accordingly. Of course, in the registry only those open commands should be modified which does not have also the /p parameter for printing the opened file.

Registry example:

REGEDIT4

[HKEY_CLASSES_ROOT\txtfile\shell\open\command]
@="\"
C:\\path to UltraEdit program directory\\Uedit32.exe\" \"C:\\path to project file\\project file name.prj\" \"%1\""

[HKEY_CLASSES_ROOT\txtfile\shell\print\command]
@="\"
C:\\path to UltraEdit program directory\\Uedit32.exe\" /p \"%1\""
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Is it possible to autoload a project?

Postby chrabros » Sat Jan 13, 2007 3:59 pm

Thanks

Dalibor
User avatar
chrabros
Basic User
Basic User
 
Posts: 11
Joined: Sat Dec 03, 2005 12:00 am


Return to Projects/Workspace