Forum Discussion

jhunter_dps's avatar
jhunter_dps
Occasional Contributor
4 years ago
Solved

Running Text File Containing Plink Command To Reset Server From TestComplete Script

Hello,   I am currently pursuing an effort to have TestComplete run a script on our machine that calls a Plink command that communicates with our database which is on a remote Linux server and can ...
  • jhunter_dps's avatar
    jhunter_dps
    4 years ago

    So I believe I have found a solution to the issue. in my code I have "/k" in the string before the command is listed, this is what was listed in the first link I posted there, turns out if you replace that with "/c" it should close the command console window after the process executes to completion.

     

    So it would look like this:

    "WshShell.Run("%comspec% /c anycommandhere", 1, True)"

     

    TestComplete can now call the command console, run the given command to reset the database, wait for completion, close console window and resume with the given tests successfully.