Dear All,

Can I moving file from one directory to another by source?

if file("backupdb.arj")
move to backup directory
endif
How to write up properly?

Many thanks.

Regards
Wandy Tang

Re: moving file by Gregory

Gregory
Thu Jan 29 04:03:26 CST 2004

Wandy,

declare Integer MoveFile in win32api string @ src, String @ dest

do case
case empty(MoveFile(@File_From, @File_To)
?' Copy failed'

otherwise
?'Copy successful'

endcase

Gregory
______________________________________________________
"Wandy Tang" <anonymous@discussions.microsoft.com.invalid> wrote in message
news:OyDXy3k5DHA.2720@TK2MSFTNGP09.phx.gbl...
> Dear All,
>
> Can I moving file from one directory to another by source?
>
> if file("backupdb.arj")
> move to backup directory
> endif
> How to write up properly?
>
> Many thanks.
>
> Regards
> Wandy Tang
>
>


Re: moving file by David

David
Thu Jan 29 10:08:43 CST 2004

Wandy,

The RENAME command can move a file from one folder to another:

rename backupdb.arj to .\backup\backupdb.arj

--
df - Microsoft MVP FoxPro http://www.geocities.com/df_foxpro

"Wandy Tang" <anonymous@discussions.microsoft.com.invalid> wrote in message
news:OyDXy3k5DHA.2720@TK2MSFTNGP09.phx.gbl...

> Can I moving file from one directory to another by source?
>
> if file("backupdb.arj")
> move to backup directory
> endif
> How to write up properly?