Recent

Author Topic: Is it possible to call an exe file with TProcess in a specified folder?  (Read 801 times)

sblisesivdin

  • New Member
  • *
  • Posts: 13
Hello all. I am trying to run an exe file with TProcess(for example running a python script like 'python.exe input.py'. When runs it creates output.txt).
When TProcess executes, output.txt is created not in same folder with input.py's folder. It is saved to the our lazarus/fpc application's folder. This is not related with python. I tried with different exe's.

Is it possible to do all execution in a single folder? Input files and output files in the same folder.

Or is it possible to call an exe file with TProcess in a specified folder?

Bi0T1N

  • Jr. Member
  • **
  • Posts: 85

sblisesivdin

  • New Member
  • *
  • Posts: 13
Thank you. It works well.

 

TinyPortal © 2005-2018