Hi Sammy,
You can use the API function
"SETFILEATTRIBUTES" like this:
SetFileAttributes('C:\My Folder', FILE_ATTRIBUTE_HIDDEN);This will set the folder's attribute to "hidden" and corresponds to changing the file attribute via the File Properties Dialog in the Windows Explorer and choosing "Apply changes to this folder only" (don't know if the translation is correct, I have a German windows). The choice between applying the changes to the selected folder only and applying them to all files and folders contained is given in Windows XP (don't know about other Versions).
To apply the hidden-attribute also to the contained files, you have to go through all the files recursively (
Serach for files recursively, sorry, it's German) and call SetFileAttributes() with every file found. But normally, this is not neccessary, though, because if you can't see the folder in the Explorer, you can't open it and will never see the files in the folder, even if they are not hidden.
But keep in mind that hiding files is not a very secure mechanism and that one could easily access the hidden folders if the name is known. And there are even possibilities to get the name, either programmatically oder via other tools (i.e. Total Commander is able to show invisible files, even for non-admin accounts, the Windows Explorer has the same feature but I don't know if only the admin is able to activate it).
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk.