Results 1 to 2 of 2

Thread: WINSCP met software oplossing en BAT-bestand

  1. #1

    WINSCP met software oplossing en BAT-bestand

    Hallo allemaal,

    Waarom werkt dit niet (zie Ophalen_Bestand_Gegevens) en als .BAT wel (zie BAT-bestand)

    Met een vriendelijke groet, Frans Dubbeld


    Code:
    Procedure Ophalen_Bestand_Gegevens;
    var
      RunProgram: TProcess;
    begin
        RunProgram := TProcess.Create(nil);
        RunProgram.Parameters.Add('/command "open sftp://UserName:Password@sftp.xs4all.nl" "cd aaaa" ^ ');
        RunProgram.Parameters.Add('"ls" " >geg_dump.log"');
        RunProgram.Executable:='winscp.com ';
        RunProgram.Execute;
        RunProgram.Free;
    end;
    xxxx.BAT
    Code:
    echo on
    winscp.com ^
    /command "open sftp://UserName:Password@sftp.xs4all.nl" "cd aaaa" ^
    "ls" "> geg_dump.log"

  2. #2
    Executable is the name of the executable to start. It should not contain any command-line arguments. If no path is given, it will be searched in the PATH environment variable.
    Staat de directory met winscp.com in je search PATH?

    Tevens.... Wat doet die spatie achter winscp.com in de Executable string ??
    Die kan ook een probleem geven.

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
  •