Transfering Settings

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Syndrome
Posts: 1
Joined: Tue Sep 05, 2006 2:43 pm

Transfering Settings

Post by Syndrome »

Hi there

We currently went through a office move where 2 diffrent offices came together. The network has been updraded too and we have all logged on to a new DOMAIN, which means that I am on a new windows profile... which means all my TextPad settings are gone.

I've exported the registry setting that I found with the help of this forum, but that seemed to have no effect.

How do I get ALL my settings back. I can deal with associated files not being there, but I kinda need everything else back.

Any help?


Syndrome
joelmw
Posts: 20
Joined: Wed Mar 10, 2004 4:48 pm
Location: DFW
Contact:

Post by joelmw »

This is a great question. I'm always re-loading, transfering from one machine to another, etc. I know several places where I can go and grab files and and I frequently end up patching things into the registry, etc., but it would sure be nice to have this laid out systematically and to know what's the best way to transfer each setting--associations, macros, hot keys, document classes, et al. I suspect this is scattered throughout the forum, it would be great if we could at least link it all together here.
Grace and Peace,
Joel
joelmw
Posts: 20
Joined: Wed Mar 10, 2004 4:48 pm
Location: DFW
Contact:

Transfer TextPad settings and/or Re-Install

Post by joelmw »

I think this is the link to which you were refering:
Backing up TP registries

Is it okay to just load this from one machine to another? Potential issues? Other registry snippets that are useful? Does this get associations? What files need to be copied (C:\Documents and Settings\<user>\Application Data\TextPad, C:\Program Files\TextPad 4\Samples?)? Issues? How do the overlapping directories interact? And, again, how to get only certain settings?

Eagerly awaiting someone's brilliance and/or superior organizational effort. :D
Grace and Peace,
Joel
OnlyTextPad
Posts: 41
Joined: Sat May 20, 2006 9:10 pm
Location: Helsinki
Contact:

Or just create a back ups generating cmd file

Post by OnlyTextPad »

Code: Select all

@echo off
REM       This tool makes a complete backup of all your TextPad settings
REM       in the Windows Registry. 
REM       The area of useage is quite wide. You can make custom "workspaces"
REM       trough launching different .reg-files. Also, you may set the "prompt for parameters"
REM       checkbox in textpad. Also, "Capture output" & "supress until..." sould be checked.
REM       
REM       In the "Parameters" textfield you can type in the deafult name for a
REM       backup. ex: "texpad.reg" or "c:\textpad.reg"
REM       
REM       As the "initial folder" you can type in a default value, leave it blank or use $FileDir
REM       © 2002 Rasmus Andersson [flajm.com / rasmusandersson.com]
REM       ADDED DOUBLE EXPORT FOR CURRENT SETTINGS ALSO
REM       Yordan Georgiev


REM Dim vars
set KEYPATH=HKEY_CURRENT_USER\Software\Helios\TextPad 4
set BUFILENAME=tps__%date%.reg
set CurrentSettings=CurrentSettings.reg

REM check for errors
:DOCHECK
	if "%BUFILENAME%"=="" goto :REPORTERROR


:DOBACKUP
REG EXPORT "%KEYPATH%" "%BUFILENAME%"
::BACKUP THE LATEST SETTINGS INTO SEPARATE FILE
REG EXPORT "%KEYPATH%" "%CurrentSettings%"
::CREATE A FOLDER FOR THE SYNTAX FILE 
mkdir textpad_system
::NOW COPY ALL THE SYN FILES INTO 
copy /y "C:\Program Files\TextPad 4\system\*.syn" "%cd%\textpad_system"

REM Report success
:SUCCESS
	echo Registry backup of "%KEYPATH%"
	echo successfully saved to "%BUFILENAME%"
	goto :ENDBAT


REM reports an error 
:REPORTERROR
	echo You must specify an output filename for the
	echo backup.
	echo Example: c:\appbackup.reg, textpad.reg, \\computer\folder\backup.reg
	
	
REM Exits and quits
:ENDBAT
	EXIT

OnlyTextPad
Posts: 41
Joined: Sat May 20, 2006 9:10 pm
Location: Helsinki
Contact:

This batch file will import previously exported settings

Post by OnlyTextPad »

I have used those ones

Code: Select all

REM       FILE IMPORT_TEXTPAD_SETTINGS.cmd
REM       This tool makes a imports the backup of all your TextPad settings
REM       in the Windows Registry. 
REM 		COURTESY TO EXPORT VERSION OF 
REM       © 2002 Rasmus Andersson [flajm.com / rasmusandersson.com]
REM       ADDED SIMPLE IMPORT and syn file copy Yordan Georgiev


:: SHOULD BE THE SAME NAME AS THE ONE IN BACK UP TEXTPAD BATCH 
set CurrentSettings =CurrentSettings.reg
REG IMPORT "%CurrentSettings%"
copy /y "%cd%\textpad_system\*.syn" "C:\Program Files\TextPad 4\system" 
TODO:
Recreate the whole stuff in perl , NSIS , perl2exe
Everything should be in one executable and / or one data folder ...
User avatar
Cloink
Posts: 81
Joined: Thu Sep 09, 2004 1:44 pm

Post by Cloink »

TextPad also stores macros (*.tpm), clip libraries (*.tcl) and CUSTOM.BND in
C:\Documents and Settings\<USER>\Application Data\TextPad\
(Or at least it does for me.)

You can dump macros and cliplibs back in the ..\Samples directory though and TP finds 'em, I dunno about the CUSTOM.BND file but there's one in the ..\Samples dir too.
OnlyTextPad
Posts: 41
Joined: Sat May 20, 2006 9:10 pm
Location: Helsinki
Contact:

How it might look in 5.0.3 's time WARNING NOT PROPERLY TEST

Post by OnlyTextPad »

WARNING NOT PROPERLY TESTED !!!
ANY FEEDBACK WILL BE APPRECIATED AT LEAST MY
TOOL FOUND FROM http://www.textpad.com/add-ons/
"A TextPad configuration backup utility" WAS OUT OF DATE AND BROKEN ; )

Code: Select all

::FILE BackUp_TEXTPAD_SETTINGS.5.0.3.cmd
@echo ON

REM       This tool makes a complete backup of all your TextPad settings
REM      	in the Windows Registry. 
REM      	© 2002 Rasmus Andersson [flajm.com / rasmusandersson.com]
REM      	REMOVED COMMAND LINE PARAM PASSING 
REM 		ADDED DOUBLE EXPORT FOR CURRENT SETTINGS ALSO FOR TP 5
REM       Yordan Georgiev
REM 		FIND AND REPLACE ::pause with ::pause for debugging ; )

:: THIS IS THE PATH TO THE REGISRY 
set KEYPATH=HKEY_CURRENT_USER\Software\Helios\TextPad 5
:: THIS IS THE NAME OF THE DATE LABELED SETTINGS REG FILE 
set BUFILENAME=tps__%date%.reg
:: THIS IS THE "CURRENT SETTINGS" FILE
set CurrentSettings=CurrentSettings.reg




::ACTION 
::BACKUP THE LATEST SETTINGS INTO SEPARATE FILE
REG EXPORT "%KEYPATH%" "%CurrentSettings%"
::pause
::BACKUP THE SAME SETTINGS FOR HISTORICAL BACKUP 
REG EXPORT "%KEYPATH%" "%BUFILENAME%"
::pause
:: CREATE THE COPY OF THE SYSTEM FOLDER ON THE CURRENT DIRECTORY
mkdir system

:: NOW COPY ALL THE SYN FILES 
xcopy /s /e /y "C:\Program Files\TextPad 5\system" "%cd%\system"
::pause
::COPY ALL THE MACROS ETC. STUFF
xcopy /s /e /y  "%appdata%\Helios" "%cd%"
::pause
	
ECHO I 'm done buy !
::pause
EXIT


Last edited by OnlyTextPad on Sat May 05, 2007 8:06 pm, edited 1 time in total.
OnlyTextPad
Posts: 41
Joined: Sat May 20, 2006 9:10 pm
Location: Helsinki
Contact:

AND HEREWITH THE IMPORT

Post by OnlyTextPad »

WARNING NOT PROPERLY TESTED !!!

Code: Select all

::FILE IMPORT_TEXTPAD_SETTINGS.5.0.3.cmd
:: SHOULD BE THE SAME NAME AS THE ONE IN BACK UP TEXTPAD BATCH 
REM 		COURTESY TO EXPORT VERSION OF 
REM       © 2002 Rasmus Andersson [flajm.com / rasmusandersson.com]
REM       ADDED SIMPLE IMPORT ADJUSTED TO TP 5 version
REM       Yordan Georgiev

:: THIS IS THE "CURRENT SETTINGS" FILE
set CurrentSettings=CurrentSettings.reg


:: IMPORT THE MOST LATEST SETTINGS INTO THE REGISTRY
REG IMPORT "%CurrentSettings%"

:: NOW COPY ALL THE SYN FILES 
xcopy /s /e /y "%cd%\system" "C:\Program Files\TextPad 5\system" 
::pause

::COPY ALL THE MACROS ETC. STUFF
xcopy /s /e /y  "%cd%\TextPad" "%appdata%\Helios\TextPad" 
::pause


Post Reply