Forum Discussion
TanyaYatskovska
13 years agoSmartBear Alumni (Retired)
Hi Teemu,
As the ftp command doesn't have GUI, you'd better use the following approach:
function Test()
{
WshShell = Sys.OleObject("WScript.Shell");
executeCommand = WshShell.Run("cmd");
if (Sys.WaitProcess("cmd", 3000).Exists)
{
Sys.Process("cmd").Window("ConsoleWindowClass", "*", 1).Keys("ftp[Enter]")
Sys.Process("cmd").Window("ConsoleWindowClass", "*", 1).Keys("?")
}
}
Read the "Testing Console Applications" article for details.
Related Content
- 12 years ago
- 5 years ago
- 2 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 6 days ago