473,548 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Implementing a "Smart" folder in Windows XP?

I'm looking for a "smart folder" program to run on my Windows XP machine.
I'm not having any luck finding it and think the logic behind the program is
pretty simple, but I'm not sure how I'd implement this. I've done some VB6
programming and dabbled in VS.Net.

Can someone share some pointers in how I could implement the following?

Basically, you drag a file to the "smart" folder and, depending on the type
of file and settings for that folder, Windows automatically puts it to a
specific place on your computer. Each smart folder would also contain a
folder named "Unknown" for file types that it didn't know how to handle.

If you open the folder, the view contains a folder representing each
location that files could be moved to.

For example...

I have my smart folder on my desktop. My smart folder is set up to put .MP3
files at "C:\Music", .BAK files at "D:\Backups " and .GIF, .JPG and .PNG at
"C:\Picture s".

I have a file, "MyPic.JPG" , on my desktop... I drag the .JPG and drop it on
the smart folder. POOF! It's now at "C:\Pictures\My Pic.JPG".

I double click my smart folder and Explorer opens up showing me the
following folders "Music", "Backups", "Our pictures" and "Unknown".

Now, I drag "README.TXT " from my desktop and drop it on the smart folder.
POOF! It's now at "...MyDesktop\S martFolder\Unkn own\README.TXT"

Now, I open the settings for my smart folder and tell it that I want all
".TXT" files to be stored at "C:\Text Files". I hit Apply and OK. Not much
has happened, but NOW I right click on the Unknown folder and choose "Try
again"... POOF! My previously unknow file is now at "C:\Text
Files\README.TX T"

...and the folder would be just as smart as Windows, warning when files
already exist and asking what you want to do (assuming you have the prompt
enabled).

So... any software out there that will do this? If not, any pointers on how
I might be able to write a utility using VB6 or VB.Net?

Oct 31 '07 #1
5 2881
"Noozer" <do*******@me.h erewrote in
news:eW******** ******@TK2MSFTN GP06.phx.gbl:
So... any software out there that will do this? If not, any pointers
on how I might be able to write a utility using VB6 or VB.Net?
I you want to write it yourself - you can use the FileSystem Monitor class
to inform your application of a change to the disk (in your case, dropping
a file in the directory).

While your smart folder idea seems "neat"... It doesn't seem practice. How
are you going to implement all the different business rules? i.e. Pictures
goes to the Picture folder, Readme.txt is unknown but HelloWorld.txt goes
to another folder? etc. etc.
Oct 31 '07 #2
Spam Catcher <sp**********@r ogers.comwrote in
news:Xn******** *************** *********@127.0 .0.1:
practice
practical :-)
Oct 31 '07 #3

"Spam Catcher" <sp**********@r ogers.comwrote in message
news:Xn******** *************** **********@127. 0.0.1...
Spam Catcher <sp**********@r ogers.comwrote in
news:Xn******** *************** *********@127.0 .0.1:
>practice

practical :-)
Practice makes prefect!
Oct 31 '07 #4

"Spam Catcher" <sp**********@r ogers.comwrote in message
news:Xn******** *************** *********@127.0 .0.1...
"Noozer" <do*******@me.h erewrote in
news:eW******** ******@TK2MSFTN GP06.phx.gbl:
>So... any software out there that will do this? If not, any pointers
on how I might be able to write a utility using VB6 or VB.Net?

I you want to write it yourself - you can use the FileSystem Monitor class
to inform your application of a change to the disk (in your case, dropping
a file in the directory).

While your smart folder idea seems "neat"... It doesn't seem practice. How
are you going to implement all the different business rules? i.e. Pictures
goes to the Picture folder, Readme.txt is unknown but HelloWorld.txt goes
to another folder? etc. etc.
Three ways so far... Filename matching (regex and Windows wildcards), file
extension and "File begins with 'xx xx xx xx xx' bytes. I'd also consider
more rules for processing ZIP files or directories dropped into a Smart
Folder, but haven't worked on the logic for them just yet.

Rules will be on a first match basis, or optionally, if the file matches
multiple rules it will create multiple copies (or only go to the first
matching rule and create shortcuts to any other matching rules). Rules might
even allow multiple destinations to allow for backup copies to be generated,
etc.

Each rule MUST have a destination location. Multiple rules can use the same
destination. A "Target not found! Create, Abort or Hold until target is
ready?" popup occurs if the target location is not available. The Smart
Folder would temporarily store the file(s) and watch for the destination
location to become available. Great for dragging stuff to, and then later
connecting a removable drive, or if you have network shares that aren't
always available.

The Smart Folder will also keep a log of just where it's put each file, so a
user can find a file if it doesn't end up where expected. Also keep track of
where the file came from, so a user can "restore" file(s) to their original
location later.

As far as the program itself... Windows will allow you to drag files and
drop them on an EXE for processing, providing a very simple trigger for the
program.

If the program is started without any command line parameters, it can assume
that the user simply chose to "open" the Smart Folder. This would show the
destination targets and allow access to settings, etc.

If the program is started WITH command line parameters, it can assume that
it is a list of files/folders/etc. that should be processed.

Yes, I've put a bit of thought into this... I just wish I knew enough VB,
C#, etc... to create the actual code. (What would be the best VS 2005
language to use for this, assume I was equally proficient in each?)
Thanks!
Oct 31 '07 #5
"Noozer" <do*******@me.h erewrote in
news:u8******** ******@TK2MSFTN GP04.phx.gbl:
Yes, I've put a bit of thought into this... I just wish I knew enough
VB, C#, etc... to create the actual code. (What would be the best VS
2005 language to use for this, assume I was equally proficient in
each?)
They're 99.9% identical because they use the same .NET framework. However,
C# does have 1 or 2 additional power features (pointers - not really used
unless you do a lot of native calls, and anonymous deletegates - VB.NET has
workarounds).

So the choice is upto you:-)
Oct 31 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
12244
by: Martin Goldman | last post by:
Hello all, I've been struggling for a few days with the question of how to convert "smart" (curly) quotes into straight quotes. I tried playing with the htmlentities() function, but all that is doing is changing the smart quotes into nonsense characters. I also searched the web for quite a while and was unsuccessful in finding a solution. ...
2
4262
by: Tim Hochberg | last post by:
During the recent, massive, painful Lisp-Python crossposting thread the evils of Python's whitespace based indentation were once again brought to light. Since Python' syntax is so incredibly brittle, and failure prone, it's amazing that we don't have more editor support for our feeble minds. To help reduce the severity of this crisis, I...
14
2656
by: David B. Held | last post by:
I wanted to post this proposal on c.l.c++.m, but my news server apparently does not support that group any more. I propose a new class of exception safety known as the "smart guarantee". Essentially, the smart guarantee promises to clean up resources whose ownership is passed into the function, for whatever defintion of "clean up" is most...
11
7004
by: Ron | last post by:
Hello, I'm having an aggravating time getting the "html" spewed by Word 2003 to display correctly in a webpage. The situation here is that the people creating the documents only know Word, and aren't very computer savvy. I created a system where they can save their Word documents as "html" and upload them to a certain directory, and the...
2
2366
by: BobAchgill | last post by:
Is there a way to let the User click on a button on a web site and have that download and install my prepackaged compressed data directory and place it nicely under my existing VB .Net Form application on the User's computer? Maybe another way of asking the question is. Can I build a smart .msi "data" installer that will when clicked on as...
3
3208
by: red floyd | last post by:
I've got some code where somebody cut&pasted some comments from MS Word, and so these comments have "smart quotes" (in particular apostrophes) embedded. The apostrophe is character hex 0x92. 2.1 indicates that characters not in the source character set are converted to the universal character name that designates the character. So far,...
3
2225
by: Alex.Sh | last post by:
How can i do something like this: i have a form with A percentage : ______ B percentage: ______ C percentage: ______ I want that the sum of these 3 fields *will never* be more than 100 (so user won't be even able to fill it).
0
7444
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7711
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7467
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6039
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5367
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5085
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1932
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1054
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.