cfg file as a command line option?

Feedback for Q Insight Pad usage

cfg file as a command line option?

Postby bayao » Thu Apr 25, 2013 2:43 pm

Would you consider adding a command line option to take different Servers.cfg files? Say we have different cfg files for end users, db admins, and developers. It's nice to have them on a shared and managed location and let users have shortcuts like
qpad.exe --config /path/to/users.cfg

Thanks!
bayao
 
Posts: 6
Joined: Thu Mar 22, 2012 6:58 pm

Re: cfg file as a command line option?

Postby Oleg » Thu Apr 25, 2013 5:00 pm

Hi, Bayao!

While it's not a problem to do by itself - next questions rise: What if user will change it?

Making it readonly by means of attributes or permissions right now isn't an option - qpad likes to open it on write (because there's no server tree readonly mode designed).

I could do automatic import from specified place, but that will
1) overwrite user Servers.cfg with all possible changes that (s)he could've saved (local instances, etc.)
2) will be nothing more than copying file to Servers.cfg, overwriting it right beside qpad(64).exe (that's how Import is working right now from Context menu, BTW)

So, if it's acceptable - there's a simple alternative to changing qpad ;-)
Creating qpadUsers.bat in the same dir qpad is in looking like this:
Code: Select all
copy \\network\path\to\users.cfg .\Servers.cfg
start qpad64_rc8.exe %*

Which can be used in shortcut, will pass all parameters specified to the qpad (%*) and will release console window (start)


Cheers,
Oleg
Oleg
Site Admin
 
Posts: 53
Joined: Fri Jan 14, 2011 5:10 pm

Re: cfg file as a command line option?

Postby bayao » Fri Apr 26, 2013 4:10 pm

Thanks for the quick reply, Oleg!
With your suggestion, I ended up with a little bit batch scripting that robocopy the executables and updates config lines between \tGLOBAL START and \tGLOBAL END with contents of a remote file based on args and keeps the rest.
bayao
 
Posts: 6
Joined: Thu Mar 22, 2012 6:58 pm


Return to Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron