Current Folder on SFX exe's

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Josué Alba

    Current Folder on SFX exe's

    Hello, once I saw a example of a code made by Brett that returns the source folder from the Sfx exe folder and not from the temp folder where it's the autorun executing. Now I need something that does that 'cos I miss the brett's code.

    Thanx for the help.
  • SUF6NEWBIE

    #2
    This may help a little--returns the folder path to the SFX executable

    -- Program run path
    Apptarget_CM = String.Mid(_CommandLineArgs[1], 11, -1);
    AppPath_T = String.SplitPath(Apptarget_CM);
    _CompressedSourceDrive = AppPath_T.Drive;
    _CompressedSourceFolder = AppPath_T.Drive..AppPath_T.Folder;



    --new global variable added in v5010 Service release

    -- _SourceFilename

    --Notes: this only works if No additional command line arguements have been passed to the APP at runtime.
    (as the 'Apptarget_CM' above targets the first in the returned table index [1])

    if passing additional commandline arguements to the APP, your arguements
    are Before the actual App Path index..so watch out for this.
    Last edited by Guest; 12-04-2004, 09:39 PM.

    Comment

    • Josué Alba

      #3
      Thanks I'll try and give you an advise how I managed this. Thx

      Comment

      Working...
      X