cancel
Showing results for 
Search instead for 
Did you mean: 

'mode' is not recognized as an internal or external command

Former Member
0 Kudos
817

Hi All,

We have installed Redwood Platform agent (windows-x86.exe -Windows (x86 32-bit)) on windows 2003 server.

Windows Server version: u201CWindows 2003 x64 Ent R2u201D

Installation drive is 😧

We have executed jobs (DOS Commands) on Windows server and it is completed successfully but it generating stderr.log apart from stdout.log file.

stderr.log file content

'mode' is not recognized as an internal or external command, operable program or batch file.

We logged into Windows Server and checked for mode.com file in C:\WINDOWS\system32 folder. File mode.com is there in system32 folder.

We have executed below commands on windows server and in stdout.log file we are not able to find mode.com file in system32 folder .Donu2019t know why it is not showing in stdout.log file. Please help me on this.

ver
C:
cd WINDOWS\system32
dir mo*
whoami 

stdout.log file content:-

Microsoft Windows [Version 5.2.3790]
 Volume in drive C has no label.
 Volume Serial Number is B00A-098F

 Directory of C:\WINDOWS\system32

02/18/2007  11:05 AM           185,344 mobsync.dll
02/18/2007  11:05 AM           134,144 mobsync.exe
03/22/2006  07:00 AM           146,432 modemui.dll
03/22/2006  07:00 AM            16,384 more.com
03/22/2006  07:00 AM           555,008 moricons.dll
03/22/2006  07:00 AM            12,288 mountvol.exe
               6 File(s)      1,049,600 bytes
               0 Dir(s)  122,509,565,952 bytes free
nt authority\system

On Windows XP we are not getting any error. We donu2019t have separate platform agent exe for x64 version.

Version: SAP CPS 7.00 Patch 17.2

Build: M26.10-29140

Thanks,

Preethish

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

From your tests it seems that the mode command indeed is not available on the system where you ran the test job, or at least not in the directory you specified and not in the path, or eventually not visible to the user running the job (you could check the privileges on the mode executable, although I'm not expecting anything strange there).

Do you have another Windows system where you can run this test on ?

Regards,

Anton.

Former Member
0 Kudos

Hi Anton,

I tested on Windows XP and job not generated any stderr.log file .

and below commnds display the mode.com file in stdout.log file.

ver
C:
cd WINDOWS\system32
dir mo*

I tested same on another windows server (u201CWindows 2003 x64 Ent R2u201D ) and we get same error.

That means we are getting this error only on Windows 2003 x64 server.

and I cheked the security of mode.com file ( Properties -> Security) and it is same in both XP and 2003 server.I logged into 2003 server and executed mode cmd and it is executing. But it is not executing from Redwood.

Thanks,

Preethish

0 Kudos

We have Version: SAP 7.00 SPS17, CPS Build: M26.15-31250

and have the same problem with the Platform Agent windows-x86.exe on Windows 2003 SP2 x64

Tom

Former Member
0 Kudos

This also happens to us on any windows platform agents when we do CMD commands. I think we found a way to suppress it by changing the log mode to "TextLog" in the Job Definition.