Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to copy files from one place to another.... 1

Status
Not open for further replies.

suhaimiyusoff

Programmer
Dec 10, 2002
5
MY
hi,
how to..
1). copy files from one place to another.
2). copy files to the all user profile start up.(ME,NT,2000,XP)

I have searched in the power builder help but I couldn't find any.

TQ
 
i also had this problem;
there 3 ways of doing it
1)call openfile() and readfile()and writefile() functions but this dosent always work
2)declare a function based on the windows library the syntex is:
[FUNCTION boolean CopyFileA(ref string ExistingFileName, ref string NewFileName,boolean Flag) library "KERNEL32.DLL"]

then you call the function with the following script:

[String ls_existing, ls_newfile
ls_existing = "oldfile.doc"
ls_newfile = "newfile.doc"
CopyFileA(ls_existing, ls_newfile, FALSE)]

3)write in a bat file [copy firstFile secondFile] and
call [run("batFilename.bat")]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top