These scp files all reference the same set of Included subroutines.
Is there a parameter or other means to 'Compile Includes' from the command line? I could not find anything in documentation.
Perhaps this is not available functionality, and it is necessary to script my own concatenation of the subroutines before compiling the scp via the command line?
When I compile the scp with msrt.exe from the command line, the exe output does not contain the subroutines referenced via Include> statements.
I am using MS Pro 15.0.24 on Windows Server 2016, not making a console app, no nested includes or any variables in the Include>paths.
Here is an example, should this work?
scp file to compile:
Code: Select all
// COMPILE_OPTS|C:\testdir\testapp.exe||CONSOLE=0|INCLUDES=1||RUNTIMES=1|BMPS=1
Include>C:\testdir\Shared\subroutine1.scp
GoSub>subroutine1
MDL>Exit
Code: Select all
SRT>subroutine1
MDL>subroutine1
END>subroutine1
Compile testapp.exe from the Editor.
Rename C:\testdir\Shared to C:\testdir\Shared_ to verify the subroutine was compiled, and not referenced at runtime by the exe.
Run testapp.exe, the modal message 'subroutine1' appears, confirming the subroutine executed.
Test 2: Subroutine is missing when compiled from command line.
Rename C:\testdir\Shared_ back to C:\testdir\Shared (so the path is valid).
Confirm the first line of the scp contains 'INCLUDES=1'.
Compile testapp.exe from the command line.
Rename C:\testdir\Shared to C:\testdir\Shared_ (to ensure the subroutine scp isnt referenced at runtime).
Run testapp.exe, an error message appears, indicating the subroutine is missing.
Code: Select all
>"C:\Program Files (x86)\Macro Scheduler 15 Pro\msrt.exe" -COMPILE "C:\testdir\testapp.scp" "C:\testdir\testapp.exe"
I scoured the forums, manual, and tried a few things:
-Use the Windows Task Scheduler -> Details tab to inspect the command line arguments for the msrt.exe process that is launched when I compile the exe via the Editor. This revealed the Editor is building a temp file with the combined content of testapp.scp and subroutine1.scp in the C:\Users\username\AppData\Local\Temp\ folder, then compiling the temp file.
-Verified the // COMPILE_OPTS on line 1 contains the expected content. I concluded this is likely used only by the Editor, not by msrt.exe.
-Ran msrt.exe via command line with -help, help, /?, ?, and various other parameters but found no hints here.
If there is a smarter way to update several projects at once, I would love to have your suggestions!
Thank you,
Rob