Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   Need programming help w/ batch application of attrib +s (https://thetfp.com/tfp/tilted-technology/46412-need-programming-help-w-batch-application-attrib-s.html)

cheesemoney 02-20-2004 11:40 PM

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.


All times are GMT -8. The time now is 02:42 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43