Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2004
    Posts
    2

    Huh? Why does the EXE end up in the DOC directory?

    I must be an utter idiot but try as I might I can't get the right path to associate with a button, I always end up with the following:

    File.Run("AutoPlay\\Docs\\DSSAR.EXE", "", "", SW_SHOWNORMAL, false);

    I'm trying to create a CD with multiple directories which use DSSAR.EXE but the EXE does not support "Arguments" or "Paths" so it has to be in the same directories as the images.

    No matter what I do the EXE insists on the path being to the "Docs" directory & will only work if I put the images in this directory, while this is a possible work around it doesn't allow for multiple directories which is essential for what I want to do.

    I feel like a complete fool as I'm obviously missing a really simple point somewhere! Can some kind soul please point me in the right direction thanks?

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi. The "Working Directory" option of the File.Open() action might work... Give it a shot and let us know.

    Corey Milner
    Creative Director, Indigo Rose Software

  3. #3
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Sure, it will allow for multiple directories. Where are your images located?

    If you put the path in "by default", the "default" is to copy the file you're trying to run "in" the Docs folder. This is by design. In short, if you type your path manually in the File.Run action, it will use that typed-in path. Give us the path to these images and we'll show you how to execute.

  4. #4
    Join Date
    Apr 2004
    Posts
    2
    Ahhhh!!!

    The secret was "Manual input" humble thanks!

    This worked in a test situation:

    File.Run("AutoPlay\\Images\\A\\DSSAR.EXE", "", "", SW_SHOWNORMAL, false);
    File.Run("AutoPlay\\Images\\B\\DSSAR.EXE", "", "", SW_SHOWNORMAL, false);

    Obviously you can't use the find file option as it places the EXE into the "Docs" directory by default (as rhosk kindly explained). I spent literally days going around in circles on this one. Many thanks rhosk & Corey.

    Problem solved

  5. #5
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    ----------

Similar Threads

  1. Is it possible to have an end user define the exe target for a button?
    By daveinmb in forum AutoPlay Media Studio 5.0
    Replies: 23
    Last Post: 04-07-2004, 05:22 PM
  2. INFO: How to Set the Default Application Directory
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 12:02 PM
  3. HOWTO: Install Files to the Windows Directory
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-18-2002, 02:33 PM
  4. Packages and If Statements
    By Medlir in forum Setup Factory 6.0
    Replies: 4
    Last Post: 05-09-2002, 03:51 PM
  5. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 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