Results 1 to 3 of 3

Thread: Uitvoer programma m.b.v. TProcess

  1. #1

    Uitvoer programma m.b.v. TProcess

    Hallo allemaal,

    In onderstaand Batch bestand werkt het prima, maar ik wil dit eigenlijk m.b.v TProcess uitvoeren. Belangrijk is dat er een change dir wordt uitgevoerd voordat het .EXE programma wordt uitgevoerd. Wat is de oplossing?

    Met een vriendelijke groet, Frans

    Code:
      Echo off
      cd c:\Tobii MySoftware\Afasie_Software\
      Afasie_Menu_02.Exe 0

  2. #2

  3. #3
    mov rax,marcov; push rax marcov's Avatar
    Join Date
    Apr 2004
    Location
    Ehv, Nl
    Posts
    10,357
    Simple scenarios als dit zijn makkelijker via runcommand(), een TProcess wrapper. b.v.

    Delphi Code:
    1. var resoutput: string;
    2. Runcommandindir('c:\Tobii MySoftware\Afasie_Software','afasie_menu_02.exe',['0'],resoutput);

    n.b. je hoeft met resoutput niks te doen.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •