Autor Beitrag
c#ler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176
Erhaltene Danke: 1

Win7 64Bit
C#, VBA, VS2013 Ultimate
BeitragVerfasst: Fr 12.08.11 10:39 
Hallo,
Ich schreibe im moment an einem Programm, dass eine CAB auf ein USB Gerät überspielen soll und diese dann installiert.
Momentan bin ich schon soweit, dass ich die CAB-datei auf meinem Rechner von sourcePath zu targetPath kopieren kann... Wenn ich jedoch als targetPath mein USB-Device (CE5) angebe, dann kommt

"Das angegebene Pfadformat wird nicht unterstützt.".
Jemand ne Idee was ich da machen kann?
c#ler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176
Erhaltene Danke: 1

Win7 64Bit
C#, VBA, VS2013 Ultimate
BeitragVerfasst: Mo 15.08.11 11:00 
user profile iconc#ler hat folgendes geschrieben Zum zitierten Posting springen:
Hallo,
Ich schreibe im moment an einem Programm, dass eine CAB auf ein USB Gerät überspielen soll und diese dann installiert.
Momentan bin ich schon soweit, dass ich die CAB-datei auf meinem Rechner von sourcePath zu targetPath kopieren kann... Wenn ich jedoch als targetPath mein USB-Device (CE5) angebe, dann kommt

"Das angegebene Pfadformat wird nicht unterstützt.".
Jemand ne Idee was ich da machen kann?


hat niemand eine Idee oder schon einmal ähnliches Geschrieben?

Ich habe mir eine Klassenbibliothek für Active Sync und RAPI runtergeladen, jedoch komm ich damit noch nicht besonders weit.. Doku ist leider nicht dabei :(
c#ler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176
Erhaltene Danke: 1

Win7 64Bit
C#, VBA, VS2013 Ultimate
BeitragVerfasst: Mi 17.08.11 11:48 
Help,
Also ich habe eine Projektmappe mit einem Forms-Projekt und einer Klassenbibliothek, die u.a. RAPI enthält.
So hoffe ich über activesync auf mein usb verbundgerät zuzugreifen (CE5.0).
Hat jemand informationen wie ich das angehen soll/kann?
Ich finde im Internet irgendwie keine richtigen Tutorials zur RAPI.cs

Meine Klassenbibliothek heißt OpenNETCF.Desktop.Communication.
In meinem Forms Projekt habe ich über using OpenNETCF.Desktop.Communication;

Meine MainForm.cs sieht bis jetzt so aus: (macht aber bis jetzt noch keinen Sinn, da der richtige Ansatz fehlt)

ausblenden volle Höhe C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Communication = OpenNETCF.Desktop.Communication;
using OpenNETCF.Desktop.Communication;

namespace Logistic_Client_Installer
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        public event RAPIConnectedHandler RAPIConnected;

        public event RAPIConnectedHandler RAPIDisconnected;

        Communication.RAPI ra = new Communication.RAPI();

        //static void Main()//string[] args)
        //{
        //    //Console.ReadLine();
        //}

        void RAPIUsage(object sender, Communication.RAPI e)
        {
            
        }

        private void _button_connect_Click(object sender, EventArgs e)
        {
            ra.ActiveSync.ConnectNow();
            if (ra.Connected == true)
            {
                Console.WriteLine("RAPI Status: active");
                Console.ReadLine();
            }
        }

        private void _button_disconnect_Click(object sender, EventArgs e)
        {
            ra.ActiveSync.DisconnectNow();
            if (ra.Connected == false)
            {
                Console.WriteLine("RAPI Status: inactive");
                Console.ReadLine();
            }
        }
    }
}


Für ein wenig unterstützung wäre ich sehr dankbar.