Posted by: rick.ca
« on: February 05, 2009, 10:20:44 pm »Quote
thanx rick.ca you konw what i want.
Perhaps, but nostra wants to keep it simple. While you may have a valid need for this, the program is for personal use and therefore most users have no interest in user access control. I think your only option is to use different shortcuts for starting the program with different access levels.
Quote
how to do read only switch?
You can "hide" editing functionality with -readonly command line parameter. To hide Settings use the -noconfig parameter.
The most convenient way to do this is to add the desired parameter to a shortcut for the program. In the shortcut properties, add the parameter to the Target box, like this:
"C:\Program Files\PVD 0.9.9.4\viddb.exe" -readonly
That will effectively restrict access, but you will be left with the problem of restricting the use of the shortcut. How that might be done depends on your desktop environment and who is using the computer—which you have not described. If your users have to log on to Windows, you would put only the restricted access shortcut on their desktop. If everyone uses the same logon, you could provide a separate shortcut for each user or type of user, and, if necessary, force everyone to use only their own shortcut by password protecting them all using Password-It!
The simplest situation is where you want full access for yourself, but want to restrict access for anyone else. The cheap and easy solution is to use two shortcuts. For other users, put a restricted access shortcut—as described above—on the desktop. For yourself, create a normal shortcut, but assign a shortcut key and set the Hidden attribute—or save it somewhere other than the desktop. You would start the program using your secret shortcut key, while everyone else would use the shortcut.