Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 21st, 2006, 5:53 AM   #1
RedSKul
Newbie
 
RedSKul's Avatar
 
Join Date: Dec 2006
Posts: 9
Rep Power: 0 RedSKul is on a distinguished road
(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.
RedSKul is offline   Reply With Quote
Old Dec 21st, 2006, 6:46 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Please read the forum's rules/FAQ.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 21st, 2006, 7:49 AM   #3
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by DaWei View Post
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.
Arevos is offline   Reply With Quote
Old Dec 21st, 2006, 7:53 AM   #4
RedSKul
Newbie
 
RedSKul's Avatar
 
Join Date: Dec 2006
Posts: 9
Rep Power: 0 RedSKul is on a distinguished road
Quote:
Originally Posted by Arevos View Post
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)
RedSKul is offline   Reply With Quote
Old Dec 21st, 2006, 8:06 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I was referring to the huge image that used to be in the signature.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 21st, 2006, 8:10 AM   #6
RedSKul
Newbie
 
RedSKul's Avatar
 
Join Date: Dec 2006
Posts: 9
Rep Power: 0 RedSKul is on a distinguished road
Quote:
Originally Posted by DaWei View Post
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.
RedSKul is offline   Reply With Quote
Old Dec 21st, 2006, 9:19 AM   #7
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Dec 21st, 2006, 5:32 PM   #8
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
Yeah, adding a TrayIcon using any .NET language is easy as dragging something to a form.
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Dec 21st, 2006, 5:37 PM   #9
RedSKul
Newbie
 
RedSKul's Avatar
 
Join Date: Dec 2006
Posts: 9
Rep Power: 0 RedSKul is on a distinguished road
Quote:
Originally Posted by reggaeton_king View Post
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.
RedSKul is offline   Reply With Quote
Old Dec 21st, 2006, 5:39 PM   #10
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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.
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
converting string to float beginnerCCC C 22 Oct 2nd, 2006 11:59 PM
OnlineTextEditor.Com! Sane Show Off Your Open Source Projects 43 Jun 16th, 2006 8:55 AM
After execution - Error cannot locate /Skin File? wchar Visual Basic 1 Mar 5th, 2005 9:04 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM
Structure char field to a disk file ehab_aziz2001 C++ 0 Feb 10th, 2005 2:42 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:43 AM.

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