Link to home
Start Free TrialLog in
Avatar of TechGuy100
TechGuy100

asked on

Prevent access to UNC path while saving files from Notepad.

I want to know how to disable UNC paths in "Open" or "Save
 as..." dialog boxes like in notepad?

 I want to block users from typing "\\Server" in the dialog box so that they can't save the files on the network location.
Avatar of tenaj-207
tenaj-207
Flag of United States of America image

If your end goal is to keep users from being able to save files where they're not supposed to then it would be better to use the security permissions on the server to limit resources then try to disable the "\\server"  

You see network drives are often connected using using some sort of command that includes \\server\share.  And if you disabled the use of \\server piece in notepad that would have negative side effects else where on your system.  That's just one example of the need to not restrict \\server.

This all leads up to the answer to your questions, you can't disable the use of UNC paths in Open or Save as dialog boxes.

I hope all that makes sense.
-tenaj
Avatar of TechGuy100
TechGuy100

ASKER

In order to explain the requiremnet more clearly...
We have a workstation in our network where we have given access to an application, we do not want the user to save anything from that workstation to any other computer on the network.

Specifically when a user opens Notepad and tries to save the txt file he can put the name of a "workstation" or "server" as "\\Server\....".
We want to restrict this practice if possible. I know we can use permissions on the servers and workstations to do that but is there a way to take away the "Option" completely to save as \\server\,, in Notepad.
ASKER CERTIFIED SOLUTION
Avatar of tenaj-207
tenaj-207
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial