• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Easy WCG_config

just ran the latest one, works like a charm. Thanks to everbody who helped out :toast:

Thanks to Mindweaver for having this crazyyyyy idea ;)
 
just ran the latest one, works like a charm. Thanks to everbody who helped out :toast:

Thanks to Mindweaver for having this crazyyyyy idea ;)

Thanks bro!
 
So, are there any changes I need to make to that exectuable?
 
So, are there any changes I need to make to that exectuable?

Sorry bro I've been busy.. hehehe I tested your file with issues my batch file encountered . One scenario, I deleted the content out of the cc_config.xml ,and I received an error (See Error Pic Below). Second scenario, I deleted the cc_config.xml file, and ran your file. It did not create the file or prompt me that it didn't complete successful. Both scenarios tested on Vista x64.

It looks good thought! What software are you using to create the exe? :toast:

FordexeError883.jpg
 
Visual Studio 2008

I fixed the first scenario. That may have also fixed the second scenario but, if it didn't, it now displays the default directory. Maybe I have the default directory for Vista wrong.
 
Last edited:
Visual Studio 2008

I fixed the first scenario. That may have also fixed the second scenario but, if it didn't, it now displays the default directory. Maybe I have the default directory for Vista wrong.

Great! This is the directory "%SYSTEMDRIVE%\ProgramData\BOINC\" for vista.

I think you're starting from the "ProgramData" correct?
 
It is using the equivilent of:

%ALLUSERSPROFILE%\BOINC\
 
Try the beta 2 I uploaded. See if it properly creates the cc_config.xml if it is not present.
 
I just tried beta 2. Scenario one is fixed, but two is still an issue.
 
What's the path it displays and what is wrong with it?
 
"Second scenario, I deleted the cc_config.xml file, and ran your file. It did not create the file or prompt me that it didn't complete successful."

It says update successful.. but when you press any key... I doesn't create the file.
 
It should say the full path to the file it created just above that. Is that path correct? If so, is the file sitting where it says it is?
 
Ok over looked the path.. It's pointing to C:\Program Files (x86)\BOINC\cc_config.xml. Change that path to "%SYSTEMDRIVE%\ProgramData\BOINC\".
 
If it has always been finding that file, it won't create the file in %ALLUSERSPROFILE%.

You can type "echo %ALLUSERSPROFILE%" in cmd if you want to double check that it points to C:\ProgramData
 
So, if the user has to uninstall the manager and reinstall. Then run the Ez config it won't update?

Yea i know %allusersprofile% works.. you don't need to echo.

You're pointing to the Programs folder (x86), not the %allusersprofile%. Sorry, not trying to be a smart a$$.. I'm just tired :p... Been writing SQL queries... :d
 
Last edited:
It does impose a problem, yeah, because without knowing the version of BOINC, I don't know where BOINC expects the xml file. I suppose I could always create the file (in %allusersprofile%) even it doesn't exist but that leaves those who have it in the program files high and dry.


Or, maybe I should go with what the registry says?


Edit: 5.# doesn't even have a registry key. :(
 
It does impose a problem, yeah, because without knowing the version of BOINC, I don't know where BOINC expects the xml file. I suppose I could always create the file (in %allusersprofile%) even it doesn't exist but that leaves those who have it in the program files high and dry.


Or, maybe I should go with what the registry says?

I would always use the "%allusersprofile%", because the user may have mult users/family members with different logins. You could use the registry, but we have confirmed it works in XP, Vista, Win7 from the "%allusersprofile%\BOINC\" folder. What do you think?
 
I think I will always make it always create it in %allusersprofile%. It will be hit or miss with older versions of WCG but it should always work for 6.1 and newer.
 
Sounds good! That's how i left my batch file to work. I thought about it after you told me about 6.0 and under, but I figured if they were using the older file for a server. Then most likely they wouldn't have any problem configuring there cc_config.xml file.

Add the new version and I'll add it to the first of the post with the batch files. :toast: Good Job!
 
Here it is. I tested and it appears to work...


Edit: I can make it blue/green if you want me to. Or I could add a command in the startup arguments so a shortcut can change the color.

Or maybe a different name?
 
Last edited:
Nice! Yea I just tested and it works! :toast:

I'm off to bed.... hehehe

I'll upload it tomorrow and add it! Good job!

Edit: Startup arguments would be nice. Let the user pick. :D
 
I added three commandline arguments (all optional):

-backcolor (color) - Sets the background color.*
-forecolor (color) - Sets the foreground color.*
-dir (directory) - Will create update or create a cc_config.xml in this directory overriding the search algorithms.

* Available colors (capitalization is important):
  • Black
  • DarkBlue
  • DarkGreen
  • DarkCyan
  • DarkRed
  • DarkMagenta
  • DarkYellow
  • Gray
  • DarkGray
  • Blue
  • Green
  • Cyan
  • Red
  • Magenta
  • Yellow
  • White


Command line example:
Code:
-backcolor "Green" -forecolor "White" -dir "C:\Documents and Settings\All Users\Application Data\BOINC"
 
Last edited:
I added three commandline arguments (all optional):

-backcolor (color) - Sets the background color.*
-forecolor (color) - Sets the foreground color.*
-dir (directory) - Will create update or create a cc_config.xml in this directory overriding the search algorithms.

* Available colors (capitalization is important):
  • Black
  • DarkBlue
  • DarkGreen
  • DarkCyan
  • DarkRed
  • DarkMagenta
  • DarkYellow
  • Gray
  • DarkGray
  • Blue
  • Green
  • Cyan
  • Red
  • Magenta
  • Yellow
  • White


Command line example:
Code:
-backcolor "Green" -forecolor "White" -dir "C:\Documents and Settings\All Users\Application Data\BOINC"

Cool.. but it kind of takes the easy out of the Easy WCG config..lol
 
Back
Top