02-20-2004, 11:40 PM | #1 (permalink) |
Loser
Location: Paradise
|
Need programming help w/ batch application of attrib +s
I'm trying to archive every pic folder that i have w/ the +s command (system). You know, the trick that lets you create a desktop.ini file in every folder and then specify a .jpg file in that file that will load in the background of the folder, just like as if that folder was a desktop.
So far, I've been copying my generic desktop.ini file to each subfolder in my pics directory, manually renaming the first file to !.jpg (so its always first when it lists), and I have desktop.ini load !.jpg as its target background. So when I go to C:\pics\supermodels\cindy -- cindy's first picture will show as a giant jpg when I maximize the folder, and the contents of the directory will list over the jpg.... just like a desktop. The pain in the ass is, you have to attrib +s (make system file) c:\pics\supermodels\cindy. This is a TRUE pain in the ass when you have to manually do this for cindy, sally, you mama, and every other *directory* that you want a background for. Guys, I'm years away from programming. Its been a long time, and I'm sad to say that my batch skills have diminished. I just picked up a copy of VC++ for the first time in about 5 or 6 years, and I don't even begin to know where to start writing a basic recursive program that would call attrib +s on every single directory in c:\pics , which is what I'm ultimately trying to do. I certainly don't remember how to write a windows program, never even learned mfc, don't know java, and plan on relearning/learning all, but in the meantime, any advice? Can this be done in batch? I'm sure I could do it in VB, but I was always a C guy. Windows api has put me off a bit so that I might try to do it in vb, but I'd really like a headstart. BTW, ideally, the program would copy the file desktop.ini into EACH subdirectory, rename the first jpg in the directory to !.jpg (this is the file that is needed by my desktop.ini file) , and then finally and most importantly attrib +s (make system) each folder. Any help would be VERY much appreciated and indeed make a really cool xp folder browsing tool. |
Tags |
application, attrib, batch, programming, w or |
|
|