Question & Answer
Question
How can you run DOS commands in IBM Rational Robot?
Answer
DOS commands can be called in the Shell statement in SQABasic and Robot can run the shell script afterwards.
This example runs Notepad in maximized format:
Sub main
Shell "Notepad.exe",3
InputKeys "Hello, world.{enter}Notepad is maximized."
End Sub
Any MS-DOS command can be performed using the Shell statement.
[{"Product":{"code":"SSSHDX","label":"Rational Robot"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Scripting","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2003.06.00;2003.06.10;2003.06.12;2003.06.13;2003.06.14;2003.06.15;2003.06.16;7.0;7.0.0.1;7.0.0.2;7.0.1;7.0.1.1;7.0.1.2;7.0.1.3;7.0.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Historical Number
22221
Was this topic helpful?
Document Information
More support for:
Rational Robot
Software version:
2003.06.00, 2003.06.10, 2003.06.12, 2003.06.13, 2003.06.14, 2003.06.15, 2003.06.16, 7.0, 7.0.0.1, 7.0.0.2, 7.0.1, 7.0.1.1, 7.0.1.2, 7.0.1.3, 7.0.2
Operating system(s):
Windows
Document number:
326217
Modified date:
16 June 2018
UID
swg21127997