DevPinoy.org
A Filipino Developers Community
   

VB.Net application for Folder Restriction.

rated by 0 users
Answered (Verified) This post has 1 verified answer | 5 Replies | 1 Follower

Top 50 Contributor
31 Posts
Points 400
jangilbertyniguez posted on 02-24-2009 6:11 PM

Guys,

Pwede ba gumawa ng VB.Net application na mag restrict ng isang folder sa makapagsave dun ng .exe file? And pwede lang nya ma-accept na file ay ung .doc lang?

thanks. ^__^

  • Filed under:
  • | Post Points: 35

Answered (Verified) Verified Answer

Top 10 Contributor
2,038 Posts
Points 42,030

Here's the solution to this problem

http://devpinoy.org/blogs/keithrull/archive/2009/02/25/how-to-blocking-restricting-certain-file-types-from-being-saved-to-a-directory-using-filesystemwatcher.aspx

It's written in C# but can easily be converted to VB.NET

HTH

devpinoy sig

  • | Post Points: 40

All Replies

Top 10 Contributor
2,038 Posts
Points 42,030

Yes, You can use the FileSystemWatcher class to accomplish what you need

http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx

I'm writing a blog post on how to solve your problem right now. I'll post a link once I'm done ;)

devpinoy sig

  • | Post Points: 5
Top 10 Contributor
2,038 Posts
Points 42,030

Here's the solution to this problem

http://devpinoy.org/blogs/keithrull/archive/2009/02/25/how-to-blocking-restricting-certain-file-types-from-being-saved-to-a-directory-using-filesystemwatcher.aspx

It's written in C# but can easily be converted to VB.NET

HTH

devpinoy sig

  • | Post Points: 40
Top 50 Contributor
31 Posts
Points 400

Hi, the code you gave to me helps me a lot!

I did the task very easy!

thanks a lot keith! ^_^

 

  • | Post Points: 20
Top 10 Contributor
2,038 Posts
Points 42,030

Hi Jan,

I suggest you put the code in a windows service application so that it runs on the background without any user interference.

- Keith

devpinoy sig

  • | Post Points: 20
Top 50 Contributor
31 Posts
Points 400

yup, i already put the code there.. ^_^

anyways thanks again ketih.

  • | Post Points: 5
Page 1 of 1 (6 items) | RSS
Copyright DevPinoy 2005-2008