I recently was asked to write a program that moved files to certain places
on a network drive based on what the files were (mainly filenames since the
files are mostly Office documents of various types). I have tried rename()
but it seems to have problems with moving things across file systems, and I
have had problems with system("cmd.exe /c move file1.doc file2.doc") and
various like comands with it not moving all the files all the time (I'm not
sure why it does it sometimes and not others). I don't want to have to move
the file by copying it bit by bit to another file and deleting the original,
though I fear that will be the only way to do it. If there are any serious
inconsistancies it is because I couldn't find the code in the few seconds
before typing this, and I am running from memory. Thanks in advance.
Nathaniel