r_simms
11 years agoNew Contributor
Running a Command Prompt command a passing result back to TestComplete
Our software can export documents and we need to validate that the expected exported document matches the actual exported document.
I found the best way for this is to use the following command via Command Prompt:
FC file1 file2
I have tried running the following command:
Call Sys.OleObject("WScript.Shell").Exec("cmd /k FC ""C:\\Users\\%USERNAME%\\Documents\\" & strFile & ".docx"" ""C:\\Users\\%USERNAME%\\Documents\\" & strFile & "2.docx""")
Regardless of how much tinkering I try, the command prompt will simply pop open and close before I can even see what has happened.
My ultimate goal is to take the result of this command to give it a pass or fail.
Any help is appreciated.
Also: Is there somewhere I can look up how to format forum posts?
I found the best way for this is to use the following command via Command Prompt:
FC file1 file2
I have tried running the following command:
Call Sys.OleObject("WScript.Shell").Exec("cmd /k FC ""C:\\Users\\%USERNAME%\\Documents\\" & strFile & ".docx"" ""C:\\Users\\%USERNAME%\\Documents\\" & strFile & "2.docx""")
Regardless of how much tinkering I try, the command prompt will simply pop open and close before I can even see what has happened.
My ultimate goal is to take the result of this command to give it a pass or fail.
Any help is appreciated.
Also: Is there somewhere I can look up how to format forum posts?