Testcomplete command line execution
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2023
11:39 PM
05-02-2023
11:39 PM
Testcomplete command line execution
I am running the below code in the testcomplete . It opens a command line and executes the command mentioned in the command line.
However after the execution of the command , the control is not returned back to the testcomplete. what seems to be the issue here?
WshShell.Run("cmd /K cd C:\\Users\\Tester\\ & echo testing",1,true);
Log.Message("completed");
Labels:
- Labels:
-
Script Tests
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023
02:26 AM
05-03-2023
02:26 AM
Note the parameter /K Carries out the command specified by string but remains. Whereas /C Carries out the command specified by string and then terminates
