Open notepad and type :
attrib +h c:\foldername\text.txt
Where you supply the correct drive and path to the file in question.
Then save as a batch file. (*.bat)
now open explorer and go to "C:\WINDOWS\Start Menu\Programs\StartUp" and create a shortcut to the batch file you just made. this should set the files attributes to hidden upon startup.
To remove the hidden flag on shutdown, make another batch file like this:
attrib -h c:\foldername\text.txt
c:\windows\rundll.exe user.exe,exit windows
then create a shortcut to this file on the desktop and double click to first remove the hidden flag and then shut down the computer.
If you're going through Hell...keep going... (Winston Churchill)
RocKeRFelLerZ