Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    173

    problem with single executable

    Ik, anyone can give show me code that would fix the following problem?:

    My AMS pro is a single exe.

    Sometimes (not on all PC's) the following lines doesnt seem to work:

    File.Copy("Bin\\CIA32.exe", InsightPath.."Database", true, true, false, true, nil);

    File.Run("Bin\\acclist.BAT", insightsystem, "Bin", SW_MINIMIZE, true);

    File.Run("Bin\\CIA.BAT", "", "Bin", SW_MINIMIZE, true);


    Anyone can help? Please?

    thanks

  2. #2
    Join Date
    Jul 2000
    Location
    NY
    Posts
    332
    Without a lot more detail...this is a total guess.....

    Use the Sourcefolder variable just to make sure it is looking in the right place for the files.

    File.Copy(_SourceFolder.."Bin\\CIA32.exe", InsightPath.."Database", true, true, false, true, nil);

  3. #3
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    173
    Sorry,

    yeah, i wasnt getting any error messages but the files were not copied at all.
    My file.copy action doesnt seem to work at all. i actually tried what you said and it still doesnt work!

    the code is:

    File.Copy(_SourceFolder.."Bin\\CIA350.exe", InsightPath.."Database", true, true, false, true, nil);

  4. #4
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312
    try

    result = Dialog.Message("Notice", _SourceFolder.."\\Bin\\CIA350.exe".." : "..InsightPath.."\\Database", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    File.Copy(_SourceFolder.."\\Bin\\CIA350.exe", InsightPath.."\\Database", true, true, false, true, nil);



    Stefan

  5. #5
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Yep Stefan's right:

    _SourceFolder.."Bin\\CIA350.exe"

    should be

    _SourceFolder.."\\Bin\\CIA350.exe"

    Corey Milner
    Creative Director, Indigo Rose Software

  6. #6
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    173

    Peekaboo!

    AAAAAAAAAAAAARG

    thanks guys!

    now i got a question. Why before adding the "_SourceFolder" part, it was working on some PC's an not on others. Anyone can put some lights on it for me please?


    thanks

    Note: the forums new look is very kool

  7. #7
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Well it depends on where your app is relative to your folders. i.e. you can use

    "\\AutoPlay"

    or

    _SourceFolder.."\\AutoPlay"

    and depending on your project, they'll probably lead to the same place... Glad you like the forums, we also like it, it's been much better since we upgraded!

    Corey Milner
    Creative Director, Indigo Rose Software

Similar Threads

  1. Problem with IF and setting-files for single executables
    By SonG0han in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 12-16-2003, 04:13 AM
  2. Creating a Single-File Executable
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 12:08 PM
  3. Running an Executable File
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 08:56 AM
  4. PROBLEM: Setup Requests Disk 2 in a Single File Setup
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-09-2002, 02:04 PM
  5. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM

Posting Permissions

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