Question
1
Replies
244
Views
Infosys Ltd
Posted: January 9, 2019
Last activity: January 9, 2019
Closed
Passing of commands to windows Command Prompt window
Hi, I am new to Openspan tool. For my project, I need to pass commands to command prompt. By using text editor, I am able to trigger command prompt but could not pass the commands (like MKDIR, CD..) to command prompt window. I am using Windows 10 OS in my system. Could someone please help me to overcome this issue.
Thanks,
Sathish
Have you tried using a component for the toolbox.
Add System.IO.Directory Exists method and System.IO.Directory CreateDirectory method.
See attached how to and sample automation.
For just C#: To do this you will need to open a command prompt and then communicate with it using the .Net class System.Diagnostics.Process. Here is a short article on how to do this in C#. You can use this in a script.
See other thread: https://community1.pega.com/community/pega-support/question/windows-command-prompt-interaction