Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Project Ideas (http://www.programmingforums.org/forum50.html)
-   -   (Need Help) Idea Active File Removeal. (http://www.programmingforums.org/showthread.php?t=12231)

RedSKul Dec 21st, 2006 6:53 AM

(Need Help) Idea Active File Removeal.
 
I want to make a program that can be minimized to the tray as an ICON that would actively watch for say something like this.

:

C:\WINDOWS\System32\data.bad

Once it sees this file have the program automatically remove it, and play a cheerful sound.

The program doesn't have to be aggressive maybe check every 30 seconds. But I want to build this from scratch, any language that is VB, C, C++. (GUI would be cool)

This is my first real project out side of a computer science class.
Thank you in advance for any help.

DaWei Dec 21st, 2006 7:46 AM

Please read the forum's rules/FAQ.

Arevos Dec 21st, 2006 8:49 AM

Quote:

Originally Posted by DaWei (Post 121535)
Please read the forum's rules/FAQ.

What rule were you referring to in particular, DaWei?

Regarding RedSKul's program, it should be relatively simple to do. The hardest part will be getting the tray icon to display, and even that isn't too tough. For such a straightforward project, you may want to do it in VB.

RedSKul Dec 21st, 2006 8:53 AM

Quote:

Originally Posted by Arevos (Post 121538)
What rule were you referring to in particular, DaWei?

Regarding RedSKul's program, it should be relatively simple to do. The hardest part will be getting the tray icon to display, and even that isn't too tough. For such a straightforward project, you may want to do it in VB.

I think hes referring to the search function I disregarded to use.

I found an original post regarding a C++ Program that does it here
Here
I just wanna attach a GUI and the tray method and that lovely noise. ^_^

(I haven't done VB, C, C++ programming in about a year so this is gonna be a revival for me)

DaWei Dec 21st, 2006 9:06 AM

I was referring to the huge image that used to be in the signature.

RedSKul Dec 21st, 2006 9:10 AM

Quote:

Originally Posted by DaWei (Post 121540)
I was referring to the huge image that used to be in the signature.

Ah yes I do apologize for that, I have a usual default set I just put on my profile when I log on to a forum for the first time.

Infinite Recursion Dec 21st, 2006 10:19 AM

Using C#:

For system tray:
http://www.developer.com/net/csharp/article.php/3336751

For the sound:
Take a look at PlaySound()

For the file existence:
look into the File.Exists()

Also want to look into Timers, to make it check at certain intervals.

ReggaetonKing Dec 21st, 2006 6:32 PM

Yeah, adding a TrayIcon using any .NET language is easy as dragging something to a form.

RedSKul Dec 21st, 2006 6:37 PM

Quote:

Originally Posted by reggaeton_king (Post 121563)
Yeah, adding a TrayIcon using any .NET language is easy as dragging something to a form.

I gotta wait for my teacher to get the school to approve a new student copy of Visual Studio 2005.

ReggaetonKing Dec 21st, 2006 6:39 PM

You can also download the Visual C++, C#, or Visual Basic Express Edition for free while you wait. It's basically the same except that the Standard or Professional edition have more features.


All times are GMT -5. The time now is 1:36 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC