How Do I: Copy Remote Share folder copy to mobile device

Last post 07-14-2009 13:27 by bhavinpanchal. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 07-14-2009 13:27

    How Do I: Copy Remote Share folder copy to mobile device

     

    Hello,

     I want to achieve following functionality:

    1. connect to network share folder from windows mobile 5 pocket pc device.
    2. copy files from network share folder to windows mobile 5 device ( using USB Active Sync Connection )
    3. I am using SDF_Community.2.3.0.39.zip.
    4. Device is connected to desktop using USB connection using Active Sync 4.5
    5. Mobile Device OS is Windows Mobile 5.0 Pocket PC
    6. .NET CF Version on the device is 3.5

    Following is the code that I am using & getting 53 error.:

    private
    void button1_Click(object sender, System.EventArgs e)
    {
    try
    {

    Network.MapDrive(IntPtr.Zero, txtRemote.Text, txtLocalName.Text, txtUser.Text, txtPassword.Text);
    }
    catch(System.ComponentModel.Win32Exception ex){
    MessageBox.Show(ex.Message);
    }
    }

    Please help me understand following properly:

    Parameters:
    // hwnd:
    // Owner window handle
    VALUE = IntPtr.Zero

    // netRes:
    // Network resource to connect
    VALUE = \\Myserver\mysharefolder

    // shareName:
    // Share name
    VALUE = What should I set this value to be?

    // userName:
    // User name
    VALUE =  mycompany.com\W
    indowsNT ( Login with access rights to server share folder )

    // password:
    // Password
    VALUE =  WindowsNT Password

    Please help me to resolve this error.

    Sincerely,

    Bhavin
Page 1 of 1 (1 items)