New topic: 

CopyFileTo

<http://forums.realsoftware.com/viewtopic.php?t=34365>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        Jucam          Post subject: CopyFileToPosted: Wed Jun 23, 2010 
9:12 am                         
Joined: Thu Nov 08, 2007 8:54 am
Posts: 18
Location: Bogotá, Colombia                Good morning

I need to copy a file in the same folder. I just want me to stay the original 
file and the file with the new name. The original file must be chosen by the 
user at runtime (OpenGetFolderItem). The new file name I have it in your code. 
Someone could help me? 

Work on Windows XP (32 Bits)

Thanks      
_________________
Juan Carlos Mendoza Awad
http://artesanoreal.blogspot.com
=====================
Windows XP
REALbasic 2007 Release 2
Standard Edition  
                             Top                 serd83          Post subject: 
Re: CopyFileToPosted: Wed Jun 23, 2010 10:30 am                         
Joined: Thu Feb 22, 2007 7:08 pm
Posts: 1155                Code:dim source as folderitem = getopenfolderitem("")
dim destination as folderitem = specialfolder.desktop.child("Folder")

if source <> nil then source.copyfileto(destination)   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to