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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cheekangteh
    New Member
    • Dec 2011
    • 7

    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
    Code:
     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim FILE_NAME As String = "c:\Users\Chee Kang\Desktop\New folder (2)\testFile.txt"
    
            If System.IO.File.Exists(FILE_NAME) = True Then
                MessageBox.Show("File already Exist")
            
    
            Else
                MsgBox("File Does Not Exist")
            End If
        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.
  • cheekangteh
    New Member
    • Dec 2011
    • 7

    #2
    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

    Comment

    Working...