Some time ago a customer reported these problems / symptoms:

  • unable to start batch files (.bat or .cmd files)
  • problems in transport management
  • tp.exe is not working correctly
  • and more …

A simple batch script with one line shows NO RESULT (no output) when executed:

Example:

echo “hello world”

 

Several colleagues from SAP support tried to find the needle in the haystack. Even if we execute this sample script via SE38 -> RSBDCOS0 cmd shell, there was no output!

The problem must be located on Windows level.

Root cause:

Somebody “created” a file on the same drive, where the SAP executables are located, for example: E:

The name of this file was “cmd”. And the size: 0 bytes! And it had no extension.

We can only guess: Somebody tried to start cmd.exe but somehow “copied” a file with zero bytes to e:\cmd ???

Conclusion:

Whenever somebody tried to start “cmd”, the OS was looking for cmd (.exe) in the actual search path. The OS found a file called “cmd” and because this file had no extension (.exe), it asked the logged on user (using RDP session) what kind of file this is and with which application this file should be opened?

Running “cmd” from within the SAP system doesn’t show this question, of course.

 

A simple “run cmd” via RDP session finally revealed the secret. That small mistake caused a lot of problems …

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply