HI,
See the following example:
void _access_network()
{
string strNetwork = "\\\\qa\\shared\\iris\\FileImport.txt";
if(!strNetwork.IsFile())
{
out_str("No FileImport.txt found");
return;
}
string strLocal = "C:\\" + GetFileName(strNetwork);
bool bFailIfExist = false; // overwrites if the file existed
CopyFile(strNetwork, strLocal, bFailIfExist); // copy FileImport.txt from \\qa computer shared\iris folder to local c drive
}
And there are many other File relative functions in Origin C, see http://ocwiki.originlab.com/index.php?title=Category:File_Management_%28global_function%29
Iris