by "Rick Davey" <rdavey@[EMAIL PROTECTED]
>
Jul 6, 2007 at 12:41 PM
OK Got it.
ExecString := '/c copy C:\Path\Filename.txt
\\Server\Path\NewFilename.txt';
SwapVectors;
Exec(GetEnv('COMSPEC'),ExecString);
SwapVectors;
I am using variables in place of the paths and filenames in the
ExecString,
and find that if either includes spaces, you must enclose in a double
quote.
Thanks all.
"Rick Davey" <rdavey@[EMAIL PROTECTED]
> wrote in message
news:f6lk6i$9bu$1@[EMAIL PROTECTED]
> What's the Pascal code to move a file? I need to move it to another
drive
> (possibly a UNC path).
> Thanks in advance!
>