D
Dave Corun
First off, you guys absolutely RULE for creating this set of libraries for
the rest of us to use!
My question is in regards to CopyFileFromDevice()
I'm basically copying the log.xml file from the device over to my desktop.
i.CopyFileFromDevice("\program files\sd_dispatch\Log.xml", "C:\log.xml",
True)
All I ever get is "Cannot Access Remote File"
The log file exists on the device, but it never gets moved over.
I tried creating an empty file there, but same error when it gets to
CopyFileFromDevice().
dim strFile as string = "C:\log.xml"
Dim f As System.IO.File
If f.Exists(strFile) = True Then f.Delete(strFile)
Dim sr As System.IO.StreamWriter = f.CreateText(strFile)
sr.Close()
f = Nothing
sr = Nothing
I do have another question as well, how would I tell if a file exists on the
device? Can I just use system.io.file to hit the device? I want to make
sure I handle any errors relating to the missing files on the device
correctly. This log file is one of 3 files that need to get transferred via
RAPI.
Thanks!!!
// Dave
(I didn't mean to make it a response to that Sai's post, but it's showing up
that way for me! Sorry for the double-post!)
the rest of us to use!
My question is in regards to CopyFileFromDevice()
I'm basically copying the log.xml file from the device over to my desktop.
i.CopyFileFromDevice("\program files\sd_dispatch\Log.xml", "C:\log.xml",
True)
All I ever get is "Cannot Access Remote File"
The log file exists on the device, but it never gets moved over.
I tried creating an empty file there, but same error when it gets to
CopyFileFromDevice().
dim strFile as string = "C:\log.xml"
Dim f As System.IO.File
If f.Exists(strFile) = True Then f.Delete(strFile)
Dim sr As System.IO.StreamWriter = f.CreateText(strFile)
sr.Close()
f = Nothing
sr = Nothing
I do have another question as well, how would I tell if a file exists on the
device? Can I just use system.io.file to hit the device? I want to make
sure I handle any errors relating to the missing files on the device
correctly. This log file is one of 3 files that need to get transferred via
RAPI.
Thanks!!!
// Dave
(I didn't mean to make it a response to that Sai's post, but it's showing up
that way for me! Sorry for the double-post!)