windowsbatch-filewindows-7rsh

rcp / rsh missing in windows 7


I have existing batch scripts which work in windows xp. These scripts use rcp and rsh commands that are supported in windows xp .

These scripts are used to connect to a unix box and transfer files to it. Later using rsh, the files are installed on the system.

In Windows 7 these commands seems to be unavailable. I am stuck on how to make existing installation work on windows 7

Any help in this regard would be appreciated.


Solution

  • Found a solution to this problem. The below steps needs to be followed:

    1. Copy the following executable and dlls from windows xp machine to a folder (say c:\Windows\OldTools) on your windows 7 machine
      • advapi32.dll
      • kernel32.dll
      • msvcrt.dll
      • mswsock.dll
      • rcp.exe
      • rsh.exe
      • user32.dll
      • ws2_32.dll

    2. Click on start menu -> right click on computer -> select Properties -> Advanced System Settings -> Environment Variables -> In "System Variables" section double click on "Path" -> Add the following text at the end

      ;c:\Windows\OldTools

      The scripts now recognizes the rcp and rsh commands.