I need to utilize the "system" call to move a file from a
local host directory to a network drive. However, I'm getting the
MS Dos window displayed while the system call is executing.
Is there a way to make this call without having the MS Dos
window come up?
Also, I tried using "rename" and "move" calls without sucess.
Here's a code snipet of what I'm doing currently:
for (i = 0; i < NumBitMaps; i++)
{
sprintf(mLocName, "%s_%d.tif", TestName, i);
if (pTestBitMaps[i] != NULL)
{
WriteTiff(mLocName, pTestBitMaps[i]);
// Now copy the file to its destination
sprintf(mNetFile, "copy %s %s\\%s",
mLocName, mFullPath, mLocName);
mRC = system(mNetFile);
remove(mLocName);
}
Quote:
}
Any help would be greatly appreciated.
Thanks,
Connie Emmart