Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call a LA function from a .batfro
#2
Create .exe program, and let .bat execute it.

Example. Compile or run this script. When compiling, LA creates C:\Test\LA\cmd1\cmd1.exe.
 
Code:
Copy      Help
// script "cmd1.cs"
/*/ role exeProgram; outputPath C:\Test\LA\cmd1; /*/

if (script.testing) args = [@"C:\Test\test.txt"];

var file = args[0];
dialog.show(file, File.ReadAllText(file));

.bat:
Code:
Copy      Help
C:\Test\LA\cmd1\cmd1.exe "C:\Test\abcg.txt"


Messages In This Thread
Call a LA function from a .batfro - by MBaas - 01-17-2024, 11:04 AM
RE: Call a LA function from a .batfro - by Gintaras - 01-17-2024, 12:02 PM
RE: Call a LA function from a .batfro - by MBaas - 01-17-2024, 01:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)