Hello Karin,
On Fri, 15 Dec 2000 at 04:38:50 GMT +0100 (CET) (which was 7:38 PM
where I live) witnesses say Karin Spaink typed:
> Is there a way to make TB behave as in a single-user environment, disregard
> the various NT users, and let me fix the rest with file permissions and the
> like?
Probably your best option is to have a logout script that records the
TB registry keys. Then, instead of launching TB directly, use a
script to first import the reg keys, then launch TB. At the end of
this message you'll find the batch file version of what I'm thinking.
The only problem I can see is if your NT user accounts don't have
regedit permission. Also I'm not sure how well Batch files work under
Windows NT, but I'm sure you could translate it to the appropriate
scripting language.
The not so nice way is to create all the accounts in TB under your
administrator account. Then log into NT with the different accounts.
Now when you do the TB install, create the appropriate accounts, but
just point them to the folders you already created.
-----Begin Batch file-----
@echo off
rem -----------------------------------------------------------------
rem - The TB setting import and launching script. -
rem - -
rem - Written by Januk Aggarwal December 2000 -
rem -----------------------------------------------------------------
cls
rem -----------------------------------------------------------------
rem - Switch to TB Mail Directory. -
rem - You'll need to change this to suit your needs -
rem -----------------------------------------------------------------
:switch
c:
cd \"Program Files"\"The Bat!"\Mail\
rem -----------------------------------------------------------------
rem - Import Registry Settings. -
rem - This assumes that you're keeping the registry settings file -
rem - in the main Mail folder -
rem -----------------------------------------------------------------
:import
echo.
echo Importing Registry Settings
echo.
if not exist TBbckup.reg goto error
start /w regedit TBbckup.reg
rem -----------------------------------------------------------------
rem - Launch The Bat! -
rem - This assumes that TB lives in C:\"Program Files"\"The Bat!"\ -
rem - You may also want to add command line parameters as you prefer-
rem -----------------------------------------------------------------
:run
echo.
echo Launching The Bat!
echo.
c:
cd \"Program Files"\"The Bat!"\
thebat.exe
exit
:error
echo Could not find registry settings. Exiting...
exit
---- End Batch File ----
-----Begin Batch file-----
@echo off
rem -----------------------------------------------------------------
rem - The TB setting export script. -
rem - -
rem - Written by Januk Aggarwal December 2000 -
rem - -
rem - This code borrows heavily from my previous backup script -
rem - available at www.egroups.com on the TBOT files page -
rem -----------------------------------------------------------------
cls
rem -----------------------------------------------------------------
rem - Switch to TB Mail Directory. -
rem - You'll need to change this to suit your needs -
rem -----------------------------------------------------------------
:switch
c:
cd \"Program Files"\"The Bat!"\Mail\
rem -----------------------------------------------------------------
rem - Export Registry Settings. -
rem - This assumes that you're keeping the registry settings file -
rem - in the main Mail folder -
rem -----------------------------------------------------------------
:continue
if not exist TBbckup2.reg goto export
echo Your previous backup is being stored in TBbckup2.reg
echo.
if exist TBbckup.reg del TBbckup2.reg
:export
if exist TBbckup.reg rename TBbckup.reg TBbckup2.reg
start /w regedit /e TBbckup.reg "HKEY_CURRENT_USER\Software\RIT\The Bat!"
echo.
exit
---- End Batch File ----
It's been a while since I've written any DOS scripts. Please let me
know if I've made any typos, or just plain stupid mistakes.
--
Thanks for writing,
Januk Aggarwal
Using The Bat! 1.48 Beta/12
under Windows 98 4.10 Build 2222 A
--
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
<mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
<mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------
You are subscribed as : [email protected]