Open Application with start values on windows lazarus / 34-Windows ---------------------------------------------------------------------- eldonfsr · 2022-05-22 00:20 I need run application but must be receive a parameters to start some think like that Admin  "config.txt" Admin "network.txt" the file contain some configuration like path and user information ---------------------------------------------------------------------- speter · 2022-05-22 00:27 Have a look at "paramstr" (https://www.freepascal.org/docs- html/rtl/system/paramstr.html). You could execute a console/command-line with something like: prog 42 foobar.txt ^0   ^1  ^1 within the program you access the parameters with code like Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program_exe := paramstr(0);some_number := paramstr(1);some_filename := paramstr(2); In Windows, you can also create a short-cut, then specify parameters, to run the program in a GUI. cheers S. ---------------------------------------------------------------------- eldonfsr · 2022-05-22 01:20 Ok i understand but where check parameters on GUI on main form? ---------------------------------------------------------------------- Thausand · 2022-05-22 01:51 Quote from: eldonfsr on May 22, 2022, 03:20:09 amOk i understand but where check parameters on GUI on main form? Depends. When you need parameters  Can be in project .lpr or mainform create or when click button or when open file or ... ---------------------------------------------------------------------- speter · 2022-05-23 00:40 Quote from: eldonfsr on May 22, 2022, 03:20:09 amOk i understand but where check parameters on GUI on main form? I am not sure what you mean. To add parameters to a short-cut:     right-click on the short-cut file (in windows explorer) and select "properties"; you can add the parameters after the EXE name (in Target).To add parameters inside Lazarus IDE (for testing etc):     select "Run > Run Parameters" then add your parameters into "Command line parameters".To check what parameters there are, I'd suggest using the FormCreate() procedure. Something like the code below.Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.FormCreate(Sender: TObject);var  a : byte;begin  memo1.append('paramcount = '+paramcount.tostring);  for a := 0 to paramcount do    memo1.append('param '+a.tostring+' = '+paramstr(a));end;cheers S. ---------------------------------------------------------------------- eldonfsr · 2022-05-23 21:20 Thanks i never use parameters to start app i was some confuse but i got run the app with parameters.... thanks so much for you help...