Page 1 of 1

copy *.csv files from T12B to Windows 7

Posted: Wed May 07, 2014 7:43 am
by PatrickGr
Hy,
i have a problem with sharing *.csv files from the DataLogger!
I want to copy the *.csv file that has been generated to a server on Windows 7!

\Flashdrive\Project\project files\DatabaseExport\Data Loggers\Datalogger.csv
-->
for example: \\Servername\\name\\Datalogger.csv

Everytime i get "IOException"!

How can i do that with script to have permission to copy files between WinCE6.0 an Win7?
______________________________________________________________

My Code:

void Button12_Click(System.Object sender, System.EventArgs e)
{
try
{
string sourcePath = @"FlashDrive\Project\project files\DatabaseExport\Data Loggers\DataLogger1.csv";

string destPath = @"\\servername\\name\\DataLogger1.csv";

File.Copy(sourcePath, destPath);
}
catch (IOException ex)
{
MessageBox.Show(ex.Message);
}
}

Re: copy *.csv files from T12B to Windows 7

Posted: Tue Jan 21, 2020 5:30 pm
by Russ C.
It looks like you're missing the beginning slash "\" in the source path:

Did you already try to change:

Code: Select all

string sourcePath = @"FlashDrive\Project\project files\DatabaseExport\Data 
To:

Code: Select all

string sourcePath = @"\FlashDrive\Project\project files\DatabaseExport\Data