Solved Saving/Updating Network files to Intranet

August 23, 2011 at 11:57:47
Specs: Windows
I am trying to put a link on our Intranet page to several documents that are updated daily by specific users. These users save the documents in their department folders, which are only acessible by their department and I.T. (me). Right now I have a .bat file that checks every half hour of the work day to see if it has been updated, if it has it will be moved to a location in the Intranet folder which will update the link on the Intranet. While users can view the Intranet, they do not have access to view the files or folders that house the Intranet html coding etc.

This option works but our users are complaining that it isn't instantaneous. Any ideas how I can do this on a network while keeping everyone's security in place and not give them extra rights to the Intranet folders?

See More: Saving/Updating Network files to Intranet

Report •

August 23, 2011 at 12:06:47
How are you at C# programming? There is a class in the .NET framework called FileSystemWatcher that allows a program to monitor a directory for changes. This would let you write a program that monitors the directory and then takes the appropriate action if a file is added or changed.

Report •

August 23, 2011 at 12:20:05
Honestly I haven't done much with C#, but what you said is exactly what I've been trying to do. Thanks for leading me in the right direction. :)

Report •

August 23, 2011 at 12:38:38
✔ Best Answer
I should have been more thoughtful and at least provided you with a reference. Here's Microsoft's description of the class, complete with example:

You could use VB, but I prefer C#, and it's not too difficult to learn if you have any facility with programming. Personally, I would say that any sysadmin should have the ability to write simple utility programs. I'm constantly amazed by the hoops that I see people jumping through trying to make batch scripts do things that would be trivial in C#.

Good luck with the project.

Report •
Related Solutions

Ask Question