c# - How do I prevent users from running applications using invalid shortcuts? -
I work in an environment where my department has various computer skills levels with different inputs used by our company users -House maintains applications. / P>
We have had many problems in the past where users copy the shortcuts from one machine to another, or worse, use shortcuts for those applications that have emailed them to other users.
For the most part, this is not really the cause of any problem. However, we occasionally receive support tickets because someone is trying to run a shortcut where the path is wrong, or indicates another machine on the network and loads the wrong file.
We are working on some new applications, and would love to find a method to stop me from doing this.
There is a way to read my initial thoughts in some way, how the program was executed and somehow went back to the place of the shortcut and find out where it was going, Or could restrict the shortcut. That means that in any way the program should be launched directly by the exe or desktop shortcut. I really do not know how to find the shortcut - same-the-exe-path though ...
Thoughts? idea?
Your implementation will be left to you, but a great initial check will be examined. For, if another user emails a shortcut and is placed on the desktop, then the user will include the user in the path which emails the shortcut instead of the current user. In addition you can try:
file. Axis (shortcut path); You can bundle some simple rules like in a console application that checks all the shortcuts on the machine repeatedly and if they are invalid, then delete them.
Comments
Post a Comment