Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    201

    Single EXE file and external folder

    Can someone please correct this code:

    Code:
    if e_Key == 13 then
    
    sSearchFile = ".\\mydatafolder" -- This is wrong this folder sould be external
    
    --name listbox as a vaiable
    LB = "LB_FileListStep1";

    I made a single file search exe portable file, but the "mydatafolder" folder inside the root folder where the exe file is.
    So i can add more files to "mydatafolder" without changing the exe file,, hope someone understand :(

  2. #2
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    201
    Ok I manage to do this with 2 files and a folder NOT 1 file and 1 folder

    Code:
    if e_Key == 13 then
    sSearchFile =_SourceFolder.."\\mydatafolder"
    and Build as Hard drive folder instead of Web/Email executable (in this way I can't add any buttons to project)

    The 2 files are autorun.exe, autorun.cdd, and my mydatafolder

    If there is a way I can do with only 1 EXE file please let me know.
    Thanks

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    with a web exe you need to access the commandline arguments that are sent the sfx at runtime, the path to the folder that the web exe was run from is always the last item in the __CommandLineArgs table

    Code:
    sRootFolder = _CommandLineArgs[Table.Count(_CommandLineArgs)]
    the above code gets the path to the folder that the exe was run from, not the temp folder, but this will not work in preview mode, you will need to setup a switch for preview and build versions
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    201
    Thanks RizlaUK


Similar Threads

  1. How to use a web exe with an external txt data file
    By DaSoulRed in forum AutoPlay Media Studio 7.5
    Replies: 0
    Last Post: 12-06-2007, 10:53 AM
  2. Running External EXE File appear back...?
    By portand in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 04-17-2007, 01:11 PM
  3. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  4. HOWTO: "Hide" Externally Referenced Files
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 03:19 PM
  5. INFO: The Explore Button on the Distribution Folder Dialog
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-11-2002, 12:06 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