Discussion:
how to move file in foxpro
(too old to reply)
engine
2003-07-08 10:11:00 UTC
Permalink
I want move some file from one folder to another in
foxpro, justlike in dos "move *.* .\abc". How can do that?
steveh
2003-07-08 10:27:33 UTC
Permalink
hi

use the COPY FILE and DELETE FILE commands

steveh
-----Original Message-----
I want move some file from one folder to another in
foxpro, justlike in dos "move *.* .\abc". How can do that?
.
Jan Bucek
2003-07-08 10:33:45 UTC
Permalink
oWsh=CREATEOBJECT('scripting.filesystemobject')
oWsh.CopyFile(cFile1,cFile2) && copy
oWsh.MoveFile(cFile1,cFile2) && move
oWsh.RenameFile(cFile1,cFile2) && rename

HTH
Post by engine
I want move some file from one folder to another in
foxpro, justlike in dos "move *.* .\abc". How can do that?
Jan Bucek
2003-07-08 10:37:32 UTC
Permalink
Oops, simple:

RENAME source_file TO target_file
Post by engine
I want move some file from one folder to another in
foxpro, justlike in dos "move *.* .\abc". How can do that?
engine
2003-07-08 13:36:09 UTC
Permalink
why I try to run dos command 'run move * .\abc' failed?
-----Original Message-----
RENAME source_file TO target_file
Post by engine
I want move some file from one folder to another in
foxpro, justlike in dos "move *.* .\abc". How can do
that?
.
Cindy Winegarden
2003-07-08 13:48:09 UTC
Permalink
Really neat! Thanks for the tip!
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
Post by Jan Bucek
RENAME source_file TO target_file
Post by engine
I want move some file from one folder to another in
foxpro, justlike in dos "move *.* .\abc". How can do that?
Loading...