Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
OS - Windows 7

I need to monitor one folder, if any new PDF or any files, getting added to that folder, should be shown as alert message pop up to the user.

Is it possible by simple batch programming.

Can anyone help on this.

Thank you.

Regards,Prashanth
Posted
Comments
[no name] 29-Aug-12 7:39am    
AFAIK there is no support for this in batch programs. You could probably do this in power shell or a simple .NET application.

1 solution

You would need to create an application to do this. You could make that application a console application if you wanted. Here is an article where all of the work is done for you. You might even get a way with just running the exe file if it fits your needs:

Watching Folder Activity in C# .NET[^]

Other alternatives include:

C#: Application to Watch a File or Directory using FileSystem Watcher[^]
http://www.devproconnections.com/article/net-framework2/c-windows-service-142435[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900