Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2005
    Posts
    572

    i need to code the source file to another folder

    i need to copy the source file to another folder
    the code

    Folder.Create(_ProgramFilesFolder .. "\\HOTBUT");
    File.Copy(_SourceFolder .. "\\" .. _SourceFilename, _ProgramFilesFolder .. "\\HOTBUT\\", true, true, false, true, nil);

    it is not good way???
    Last edited by lnd; 04-24-2008 at 11:50 AM.

  2. #2
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    Try this:
    _ProgramFilesFolder .. "\\HOTBUT"

    instead of:
    _ProgramFilesFolder .. "\\HOTBUT\\"

    On File.Copy line.

  3. #3
    Join Date
    Oct 2005
    Posts
    572

    it's dont work

    it's dont work

  4. #4
    Join Date
    Sep 2007
    Posts
    63

    Smile

    I'm not good at this but you can try it. It works for me..

    Folder.Create(_ProgramFilesFolder .. "\\HOTBUT");
    File.Copy(_SourceFolder .. "\\" .. "*.*", _ProgramFilesFolder .. "\\HOTBUT\\", true, true, false, true, nil);


    yhb

  5. #5
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    201
    yhb
    It works for me too

  6. #6
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    That's strange.

    This does work for me.

    Folder.Create(_ProgramFilesFolder .. "\\HOTBUT");
    File.Copy(_SourceFolder .. "\\" .. _SourceFilename, _ProgramFilesFolder .. "\\HOTBUT", true, true, false, true, nil);

  7. #7
    Join Date
    Sep 2007
    Posts
    63

    Smile

    Quote Originally Posted by mwreyf1 View Post
    That's strange.

    This does work for me.

    Folder.Create(_ProgramFilesFolder .. "\\HOTBUT");
    File.Copy(_SourceFolder .. "\\" .. _SourceFilename, _ProgramFilesFolder .. "\\HOTBUT", true, true, false, true, nil);

    Yes that does work but I think he wants all folders and files and subfolders from SourceFolder....that only copies files from the SourceFolder and not the folders.

    yhb

Similar Threads

  1. TrueUpdate 2.0 Update (v2.0.6.0) Released
    By Brett in forum TrueUpdate 2.0
    Replies: 0
    Last Post: 10-31-2006, 01:10 PM
  2. Question on DOCS folder and previous file versions
    By Larry Singer in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 03-15-2005, 01:06 PM
  3. Copy file to a folder that is a variable?
    By Warty in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 01-15-2004, 09:22 AM
  4. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts