View Full Version : Current Folder on SFX exe's
Josué Alba
12-04-2004, 02:23 PM
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
12-04-2004, 10:25 PM
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.
Josué Alba
12-05-2004, 09:45 AM
Thanks I'll try and give you an advise how I managed this. Thx
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.