Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2006
    Location
    Quebec, Canada.
    Posts
    432

    Code copy correction

    Hello everyone,

    I'm experiencing some problems with my code. The goal is to copy the folder contents from the hard drive (those already have the right subfolders) and to reconstruct them in the AutoPlay folder to be executed within the php server.
    Here's the code I did, and I can't find why it doesn't work! I simply call it with "TransferToTest()"

    Code:
    function TransferToTest()
    	sDest_ = Dialog.FolderBrowse("Choisissez le répertoire du projet", UserDocs.."\\Portfolio Bon Melon");
    	StatusDlg.Show();
    	Folder.Create("AutoPlay\\Server\\www\\css");
    	Folder.Create("AutoPlay\\Server\\www\\images");
    	Folder.Create("AutoPlay\\Server\\www\\images\\portfolio");
    	Folder.Create("AutoPlay\\Server\\www\\js");
    	File.Copy(sDest_.."\\css\\*.*", "AutoPlay\\Server\\www\\css", true, true, false, true, nil);
    	File.Copy(sDest_.."\\images\\*.*","AutoPlay\\Server\\www\\images", true, true, false, true, nil);
    	File.Copy(sDest_.."\\images\\portfolio\\*.*","AutoPlay\\Server\\www\\images\\portfolio", true, true, false, true, nil);
    	File.Copy(sDest_.."\\js\\*.*","AutoPlay\\Server\\www\\js", true, true, false, true, nil);
    	File.Copy(sDest_.."\\*.*","AutoPlay\\Server\\www", true, true, false, true, nil);
    	StatusDlg.Hide();
    	Dialog.Message("Copie des fichiers", "Les fichiers ont été copiés avec succès!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    Thanks a lot!
    FoxLeader

    Edit: Is it me or the [code] balises were supposed to add color to the code?
    Last edited by FoxLeader; 08-09-2007 at 07:05 PM. Reason: Remark...

  2. #2
    Join Date
    Nov 2006
    Location
    Quebec, Canada.
    Posts
    432
    Any ideas guys? (and girls !?!)

  3. #3
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    looking at the code:

    you need to define the Full paths for Source and Destination actions
    for each folder and file copy action

    hth

  4. #4
    Join Date
    Nov 2006
    Location
    Quebec, Canada.
    Posts
    432
    So if I understand well, a relative path doesn't works? I would have to get the "_SourceFolder", instead of "AutoPlay\\Server" etc... !?!

    I will try it when I'll be back.

Similar Threads

  1. Article: Using Authenticode Code Signing Certificates
    By Ted Sullivan in forum Setup Factory 8.0 Examples
    Replies: 4
    Last Post: 10-31-2007, 09:03 AM
  2. ANSI To UNICODE Is Finished!
    By coderanger in forum AutoPlay Media Studio 6.0
    Replies: 7
    Last Post: 08-13-2007, 09:27 AM
  3. Progress Bars screen, On Start code is skipped
    By AxemanMK in forum Setup Factory 7.0
    Replies: 7
    Last Post: 09-21-2006, 02:15 PM
  4. The ? char code is not working
    By Marker0077 in forum Setup Factory 6.0
    Replies: 7
    Last Post: 06-21-2003, 04:04 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