By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,165 Members | 1,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,165 IT Pros & Developers. It's quick & easy.

set file attributes for mobile device

P: n/a
I am trying to make a file I created a hidden file. I think I need to use
the setfileattribute() but I cannot find it anywhere. I found this on msdn:
http://msdn.microsoft.com/library/de...attributes.asp
can anyone direct me in the right direction?
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Thanks, It is exactly what I'm looking for. You couldn't have made my day
any better. It is working great!

"Joseph MCP" wrote:

August 9, 2004

I don't have experience with mobile devices, but assuming
that they are the same...

You can use the IO.FileInfo(filepath) class to change file attributes.
Then use FileInfo.Attributes = IO.FileAttributes.Hidden.

Private Sub Button1_Click(...)

If System.IO.File.Exists(txtfilepath.text) then

Dim iFile as New System.IO.FileInfo(txtfilepath.text)
iFile.Attributes = IO.FileAttributes.Hidden

End If

End Sub

I hope this solves your question!
Joseph MCP
"Benjamin" wrote:
I am trying to make a file I created a hidden file. I think I need to use
the setfileattribute() but I cannot find it anywhere. I found this on msdn:
http://msdn.microsoft.com/library/de...attributes.asp
can anyone direct me in the right direction?

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.