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