W
Will Chapman
Using the Rapi Class in the OpenNETCF.Communication.library
I have come up with the following code which copies a CAB file
to a PPC and then explodes it.
The explosion in turn produces another CAB file and when
I try to explode with the same process it fails (the CAB is
good as it can be exploded manually on the PPC).
Can anyone advise what I am missing?
string cCE = "EyeMHere.cab";
if (!m_rapi.DeviceFileExists(cCE))
{
m_rapi.CopyFileToDevice(@"C:\EyeMHere\EyeMHereCab\Release\EyeMHere.Cab",
"EyeMHere.cab", true);
}
if (m_rapi.DeviceFileExists(cCE))
{
m_rapi.CreateProcess("wceload.exe", cCE);
}
//Up to this point the code works fine and the target CAB is exploded.....
However, it won't work again.....
cCE = "\\Program Files\\GpsLibCE.arm.CAB";
if (m_rapi.DeviceFileExists(cCE)) ///this evaluates true
{
m_rapi.CreateProcess("wceload.exe", cCE); //this line is processed but
nothing happens...
}
Any ideas/suggestions?
I have come up with the following code which copies a CAB file
to a PPC and then explodes it.
The explosion in turn produces another CAB file and when
I try to explode with the same process it fails (the CAB is
good as it can be exploded manually on the PPC).
Can anyone advise what I am missing?
string cCE = "EyeMHere.cab";
if (!m_rapi.DeviceFileExists(cCE))
{
m_rapi.CopyFileToDevice(@"C:\EyeMHere\EyeMHereCab\Release\EyeMHere.Cab",
"EyeMHere.cab", true);
}
if (m_rapi.DeviceFileExists(cCE))
{
m_rapi.CreateProcess("wceload.exe", cCE);
}
//Up to this point the code works fine and the target CAB is exploded.....
However, it won't work again.....
cCE = "\\Program Files\\GpsLibCE.arm.CAB";
if (m_rapi.DeviceFileExists(cCE)) ///this evaluates true
{
m_rapi.CreateProcess("wceload.exe", cCE); //this line is processed but
nothing happens...
}
Any ideas/suggestions?