Hello can anyone tell me how to create a text file , read only and hidden in vb ? please help ..
This will create the file. Code: Open "MyFile" For Output As #1 'This line will write text to the file. Print #1, "MyText" Close #1 Now to set it as a hidden file, use the SetAttr function. Code: SetAttr "MyFile", vbHidden Or vbReadOnly
Open "MyFile" For Output As #1 'This line will write text to the file. Print #1, "MyText" Close #1
SetAttr "MyFile", vbHidden Or vbReadOnly
thanks
Forum Rules