topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 5:46 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Portability of Clipboard Help+Spell  (Read 6465 times)

GSz

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 30
    • View Profile
    • Read more about this member.
    • Donate to Member
Portability of Clipboard Help+Spell
« on: March 17, 2010, 02:30 AM »
Hi Everyone (and Mouser)

I was wondering about CHS portablity, I noticed that there is a Database and Backup folders inside the program folder, but then noticed that the files used are located in my Documents\donationcoder\Clipboard Help+Spell folder.

Am I missing something? if so what?

Tried searching the forum board, but didn't find it (or was too lazy to skim through the board - sorry  :-[ )

As allways with DonationCoder.com in general and Mouser in particulat - Thanks for such an excellent piece of software.

Gal
- Sincerely
    Lockszmith

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Portability of Clipboard Help+Spell
« Reply #1 on: March 17, 2010, 02:51 AM »
As with most of my programs, you can use them portably, just edit the ConfigDir.ini file and remove the // in front of
// CONFIGDIR = .
to tell the program to use the current directory it's run from to save the date.

Actually I think you should be able to put the line
PORTABLE=TRUE

at the top of the file to have the same effect.

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,199
    • View Profile
    • Donate to Member
Re: Portability of Clipboard Help+Spell
« Reply #2 on: March 17, 2010, 11:59 AM »
Actually I think you should be able to put the line
PORTABLE=TRUE
mouser, do you mean that one should be able to, but currently can't because you haven't coded it yet?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Portability of Clipboard Help+Spell
« Reply #3 on: March 17, 2010, 02:52 PM »
i just mean i can't remember if the latest build has this -- i think it does.

GSz

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 30
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Portability of Clipboard Help+Spell
« Reply #4 on: March 18, 2010, 08:27 AM »
Thank Mouser,

added both PORTABLE=TRUE and CONFIGDIR=..\zData and it worked perfect.

My goal no is to hold all DonationCoder/Mouser applications in a singe folder tree (DonationCoder) where each application has it's own sub-folder, and the data is stored in a centralized location (the zData sub-folder - the "z" is there so it will be last when sorted by name).

One note though - in the configdir.ini file there is the followin statement:
// NOTE: the company and application subdirectory name will automatically be
//  added to the path specified (except for %APPDIR% which includes the name
//  already, i.e.:
//    "E:\MyCleverSettings" -> "E:\MyCleverSettings\DonationCoder\AppName\"
But the DonationCoder\AppName in this case DonationCoder\ClipboardHelpAndSpell was not created under ..\zData
Is that by design, and the statement is wrong, or is it something that will change later on.

Anyway thanks for putting in such a basic configuration option, it makes your software even more useful now that I can synchronize it between computers, and keep a synchronized copy on my USB drive.
- Sincerely
    Lockszmith

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Portability of Clipboard Help+Spell
« Reply #5 on: March 18, 2010, 11:43 AM »
you say it "worked perfect", but then say it didnt create the DonationCoder\Appname..
but did it create the data directory and put your data files in it.. in other words.. are you sure its using the folder you told it to store its data?

GSz

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 30
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Portability of Clipboard Help+Spell
« Reply #6 on: March 19, 2010, 07:09 PM »
This time I was the confusing one - sorry.

It worked perfect: yes the ConfigDir value is used, and yes even if it didn't exist before, it created it.

My note was not on what you stated in the forum, but what is stated in the ConfigDir.ini comments, the creation of the sub-folder according to the product.

BTW, it is the same for all other of your apps found on the site that had the configDir.ini, I created me a small script (cmd batch file) that creates a product specific configdir.ini for each folder that already had a configdir.ini in it.

if it makes any difference, I tested this only on my OS - Win7 64bit.
- Sincerely
    Lockszmith

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Portability of Clipboard Help+Spell
« Reply #7 on: March 19, 2010, 07:12 PM »
I think i understand now and it seems i need to correct the ConfigDir.ini comments -- as you are right, it doesnt always create the DonationCoder\ subdirectory. Thanks for the report, and glad it's working for you.