|
#1
|
|||
|
|||
|
Different behavior with _SourceFolder variable
After compressing my old AMS5 project into a web/email executable, several scripts do no longer work.
In my scripts I often use the variable _SourceFolder. Building the project into a web/email executable, this variabele points to the temporary directory, i.e. the directory where the executable is uncompressed. Is there a way to still get the _SourceFolder variable point to the path of the executable (autorun.exe) in stead of to the uncompressed executable? Roel Knol KMO Development BV |
|
#2
|
||||
|
||||
|
There is a way to do this.
From the Help file: Quote:
Code:
SFESourceFolder = "";
for i, strArg in _CommandLineArgs do
if(String.Find(strArg,"SFXSOURCE") ~= -1)then
local nStrLen = String.Length(strArg);
local strFullFileName = String.Right(strArg,nStrLen-10);
local tblPathParts = String.SplitPath(strFullFileName);
SFESourceFolder = tblPathParts.Drive..tblPathParts.Folder;
SFESourceFolder = String.TrimRight(SFESourceFolder,"\\");
end
end
Dialog.Message("SFESourceFolder",SFESourceFolder);
|
|
#3
|
|||
|
|||
|
Great, thanks!
Roel |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with variable | UweGeercken | Setup Factory 6.0 | 2 | 07-12-2004 05:15 AM |
| Variable in a variable name?? | GurkGager | Setup Factory 6.0 | 1 | 05-18-2004 03:31 PM |
| Can't copy files with variable?? | SonG0han | AutoPlay Media Studio 5.0 | 1 | 03-06-2004 04:58 AM |
| Check if a variable exists ? | jmoisan | AutoPlay Media Studio 4.0 | 4 | 09-16-2002 10:07 AM |
| SUF 6.0.0.0 Bug: Loosing def variable in radio buttons screen | pit | Setup Factory 5.0 | 1 | 11-21-2001 02:10 PM |
All times are GMT -6. The time now is 02:12 PM.








Linear Mode

