cancel
Showing results for 
Search instead for 
Did you mean: 

cmd attach issue

SureshBABU4
Level 2
hello friends,

we are facing issues with cmd (batchfile) by default using utility environment object its opening with syswow64, but for our successful batch file execution we need to open in system32 and after that we need to send parameters to batch file and read the output from batch file.
we managed to launch batch file in system32 using wild card but attach is application madular is not working properly (once in 10 times may work)
we require your help to solve this issue.

------------------------------
Suresh BABU
RPA developer
Deuscthe bank
Asia/Kolkata
------------------------------
4 REPLIES 4

TetsujiJunicho
Level 9
Hi,

Have you tried "Utility - Environment" Object's action: Start Process Read Stderr and Stdout?

Hope this helps.

------------------------------
Tetsuji Junicho
Manager of RPA Practice Grp.
Accenture Japan
Asia/Tokyo
------------------------------

yeh i tried environment object but its not attaching for system32, with syswow64 its working, Regarding stability of attaching cmd we are facing problems

------------------------------
Suresh BABU
RPA developer

mumbai
------------------------------

Hi,

My understand is that when you use 32-bit OS, cmd.exe could be called by "C:\WINDOWS\system32\cmd.exe".
On the other hand, when you use 64-bit OS and want to call 32-bit cmd.exe, it could be called by "C:\Windows\SysWOW64\cmd.exe".

It all depends on whether your OS is 32-bit or 64-bit.

Hope this helps.

------------------------------
Tetsuji Junicho
Manager of RPA Practice Grp.
Accenture Japan
Asia/Tokyo
------------------------------

Bhuvnesh_KumarG
Level 3
Hi,  

I also launched cmd using utility-Environment (Start Process) and I was able to launch the cmd. I had to pass some commands to cmd emulator so i attached to cmd using Attach action available in Navigate stage.

While you are creating Application Modeller, Pass the window title as *cmd* and give the process name as well (which you can find in Task Manager) and try to attach.

Hope this helps.

------------------------------
Bhuvnesh Kumar Gupta
Sr. Software Engineer
Xavient Information System
Asia/Kolkata
------------------------------