blog: backup or transfer your settings

A collection of especially useful xplorer² topics and ideas. New users may find it helpful to look here before searching the other forums for information. >>>>>> Please post new material in the relevant forum. (New stuff posted here will be removed.) Thanks. -fg-

Moderators: fgagnon, nikos

User avatar
nikos
Site Admin
Site Admin
Posts: 15760
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

blog: backup or transfer your settings

Post by nikos »

This thread was originally posted  in the xplorer² Professional forum.        
Moved here 19-May-2010 =fg=
=====================================================


here's the comment area for today's blog post found at
www.zabkat.com/blog/13Apr08.htm
User avatar
johngalt
Gold Member
Gold Member
Posts: 559
Joined: 2008 Feb 10, 19:41
Location: 3rd Rock
Contact:

Post by johngalt »

So, the /I switch works with all versions, and can be used to load said .REG file for settings, and it will not 'import' them into the registry, but use them only for that session?
Image

Image
User avatar
nikos
Site Admin
Site Admin
Posts: 15760
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

no, /I will just overwrite the registry with the settings file (in fact it first deletes the old information and then imports the REG file supplied)

the portable version will clear the registry after you quit xplorer2 so that no traces are left
User avatar
johngalt
Gold Member
Gold Member
Posts: 559
Joined: 2008 Feb 10, 19:41
Location: 3rd Rock
Contact:

Post by johngalt »

Thanks for the clarifications.
Image

Image
Squirrel1971
New Member
Posts: 5
Joined: 2008 Apr 15, 17:45

Suggestion for REG file you create

Post by Squirrel1971 »

If you have your code write the following line first in the *.REG file you create with Actions > Export Settings , it will first delete the reg key so you effectively clear your previous settings in order to restore the EXACT configuration you were expecting to get when you double click the file and merge its contents into the registry:

Code: Select all

[-HKEY_CURRENT_USER\Software\ZabaraKatranemia Plc]
:idea: putting a minus before the HKEY deletes the whole key in *.REG scripts, but you can also use =- to delete individual values, e.g. the following would delete the szCustomDateFormat value from the registry

Code: Select all

[HKEY_CURRENT_USER\Software\ZabaraKatranemia Plc\xplorer2_UC]
"szCustomDateFormat"=-
User avatar
nikos
Site Admin
Site Admin
Posts: 15760
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

that's a good idea, i'll add these -HKEY statements to the reg file saved by xplorer2
Ian
Member
Member
Posts: 44
Joined: 2008 Jan 03, 22:04

Post by Ian »

Maybe this is off topic, but still regarding portability and settings.

Is it possible to make Xplorer2 handles file-types differently than Windows Explorer?
With that, for those who have Xplorer2 and their fave apps on USB could browse any PC with their fave apps by double clicking normally within Xplorer2.

And for those who have PC that reset state (DeepFreeze, etc.) upon reboot, could just easily change the settings in Xplorer2, not Windows Registry.

Apologize if it is done already or have been discussed before.
User avatar
nikos
Site Admin
Site Admin
Posts: 15760
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

custom file associations are not supported, but you can do the next best thing: define user commands (Customize menu) that launch programs with the selected file as an argument, e.g. >notepad $n

these will be part of your settings and will be available wherever you happen to be working
Ian
Member
Member
Posts: 44
Joined: 2008 Jan 03, 22:04

Post by Ian »

User commands, does it means I would need to have one toolbar-button for each program?
Sometimes I have more than 1 program with the same usage, like 3 video players, 2 text editors, etc.

Can the user commands read the extension and gives us different menu instead being fixed?
I think it can be done quite easy by using automation script like AutoIt that would read the ext and then gives appropriate menu of apps.

Thanks, nikos.
User avatar
nikos
Site Admin
Site Admin
Posts: 15760
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

the most flexible you can get with user commands is using the $? token when you're going to be asked for an optional argument, but i doubt that's what you want
Ian
Member
Member
Posts: 44
Joined: 2008 Jan 03, 22:04

Post by Ian »

I think I already got what I wanted.

Code: Select all

>notepad $n
$n Is the path to a file that I selected from ATL:BrowserListView, right?
Then use something like a script that can read arguments being thrown at it (in this case the path to the file or $n), and will read the file's extension. Then the script will create a menu that already determined before based on that extension.
With FrizzleFry info regarding set x2path=%~dp0, I think it can work on usb too.

So, whether I choose a .avi; .mp3; or .txt, I only need to click on that user command and I will get appropriate menu for that file.
User avatar
nikos
Site Admin
Site Admin
Posts: 15760
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

$n is the name, but if you allow x2 to set the current directory (normal behaviour), then it's all you need, otherwise use $f

for a full list of tokens see http://www.zabkat.com/x2h_7.htm#dos_tok
Ian
Member
Member
Posts: 44
Joined: 2008 Jan 03, 22:04

Post by Ian »

Ah yes, $f is exactly what I needed. However, I was thinking about virtualization for better implementation with file type.
Anyway, thank you for the info and good luck with your excellent file manager.
User avatar
admsupport
Bronze Member
Bronze Member
Posts: 142
Joined: 2008 Dec 11, 00:18
Location: Japan

Post by admsupport »

The net piece of information! This is not new, since I have opened a thread related to the app settings.

In the risk to repeat myself, this particular blog's content deserves to figure somewhere in the "Quick Start guide" for the sake of the newcomers.
Bob Sandford
New Member
Posts: 1
Joined: 2011 Jun 09, 19:37

transfer settings to new computer

Post by Bob Sandford »

I am using using xplorer2 pro on my current Win XP Pro 32-bit computer which i will soon be replacing with a Win 7 64-bit computer and i want to transfer my xplorer2 pro settings to the new computer. I have exported the explorer2 settings from the old computer. Once I've installed explorer2 64-bit on my new computer, can I safely merge the (32-bit Win XP) exported reg settings to the new (64-bit Win 7) computer?
Post Reply