TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: `SAMMY MITCHELL`
date: 1998-02-25 02:06:00
subject: Re: Can you move TSEHIST.DAT?

From: "Sammy Mitchell" 
>Is there a way to tell TSE (2.5) to locate TSEHIST.DAT somewhere
>other than its "home" directory?  I don't see anything in the .ui or
>the help.  Perhaps one can add something in WhenLoaded or some other
>place?
Yes, but there is at least one pitfall that I know of.  Since this is not a
documented feature, we have not tested it extensively, so there may or may
not be other problems.
The editor stores various files .dat files (including tsehist.dat) in the
editors load directory.  You can change this load directory, by setting the
undocumented variable "LoadDir".
You can set it in a startup macro, or in your .ui WhenLoaded.
Note that the LoadDir path *must* end in a backslash.  We plan on removing
this restriction in a future version.
The one problem that I am aware of is that the "Save Current Settings"
command.  However, since this command is partially implemented as a macro,
you could put a wrapper around it that temporarily restores the LoadDir to
the original default, and then sets it back to what you wanted.  Actually,
you could do something like:
/**************************************************************************
  LoadDir(1) returns the full path of the editor executable, including the
  name of the editor, even if the LoadDir variable has been changed.
  Think of LoadDir(1) as a synonym for PathToExe.
 **************************************************************************/
proc mSaveSettings0()
    string save_loaddir[255]
    save_loaddir = Set(LoadDir, SplitPath(LoadDir(1), _DRIVE_|_PATH_))
    mSaveSettings()
    Set(LoadDir, save_loaddir)
end
Sammy Mitchell
SemWare Corp.
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.