469,963 Members | 1,836 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

How to check file location in window mobile 6 professional vb.net

hi all,
i face check txt file location problem in window mobile 6 professional.

code testing for window form
Expand|Select|Wrap|Line Numbers
  1.  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         Dim FILE_NAME As String = "c:\Users\Chee Kang\Desktop\New folder (2)\testFile.txt"
  4.         If System.IO.File.Exists(FILE_NAME) = True Then
  5.             MessageBox.Show("File already Exist")
  8.         Else
  9.             MsgBox("File Does Not Exist")
  10.         End If
  11.     End Sub
coding above show me the correct answer :File already Exist (i pasted the file there before i start my program)

but when i apply the same thing in window mobile 6 professional, it give me the wrong answer "File Does Not Exist" although i pasted the file there before i start my program.
i try to figure out the reason, but so far i can't get any correct reason.

Kindly advise.
Dec 26 '11 #1
1 1822
how can i solved this if i need to check a file in a window mobile location?

i am doing a project, the flow like :
when i send a file to window mobile 6 professional at a specific location, and once the file is detect at that location, it will automatically trigger another button.

as we know we can check the file location at laptop easily (just click the properties, and check the location), but how we can check the location of file received in window mobile 6 professional?

can provide me a alternative way or idea to solve it?
thanks a lot
Dec 26 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Jim Heavey | last post: by
5 posts views Thread by aiki727 via DotNetMonster.com | last post: by
1 post views Thread by shirantha | last post: by
2 posts views Thread by ahmurad | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.