Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2001
    Location
    South Africa
    Posts
    11

    File.Run problem

    I have used the following code to run an installation program from a subdirectory on a cd. However, it will not activate the file, "SetupAdvisor.exe". I cannot fathom out why - is there a problem with the code?

    File.Run("_SourceDrive\\Advisor\\SetupAdvisor.exe" , "", "_SourceDrive\\Advisor", SW_SHOWNORMAL, false);

    Thanks for any help.

    Regards,
    Harris

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    you have the quotes in the wrong place

    Code:
    File.Run("_SourceDrive\\Advisor\\SetupAdvisor.exe" , "", "_SourceDrive\\Advisor", SW_SHOWNORMAL, false);
    try this

    Code:
    File.Run(_SourceDrive.."\\Advisor\\SetupAdvisor.exe" , "", _SourceDrive.."\\Advisor", SW_SHOWNORMAL, false);
    also if you want to accesss the folder the app is run from use _SourceFolder instead of _SourceDrive
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Jul 2001
    Location
    South Africa
    Posts
    11

    Thanks

    Thanks, the correct fix! Much appreciated, and for such a quick response.
    Harris

Similar Threads

  1. Problem with File.Run and WaitForReturn
    By Steve_K in forum Setup Factory 7.0
    Replies: 3
    Last Post: 12-19-2006, 09:40 AM
  2. File.run problem
    By Dan Ullman in forum Setup Factory 7.0
    Replies: 2
    Last Post: 09-07-2006, 11:17 AM
  3. Problem running File.Run
    By casman in forum Setup Factory 7.0
    Replies: 11
    Last Post: 03-28-2006, 10:23 AM
  4. File.Run script problem
    By naruto in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 02-13-2006, 07:07 PM
  5. File.run _sourcefolder problem
    By SpudGunMan in forum AutoPlay Media Studio 5.0
    Replies: 26
    Last Post: 09-07-2004, 06:32 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