0 Replies Latest reply: Nov 29, 2011 11:29 PM by Sab RSS

    Password should not be displayed in Windows 64 bit machine

    Sab
      Hi

      I am not sure whether this category is apt for my question.

      We have a requirement to mask the password entry in our utility in Windows 64 bit machine.

      I was trying to run the following from a 64 bit Windows machine .

      @echo off
      echo hP1X500P[PZBBBfh#b##fXf-V@`$fPf]f3/f1/5++u5>in.com
      echo Enter password:
      for /f "tokens=*" %%i in ('in.com') do set "password=%%i"
      del in.com
      echo.
      echo The Password is:"%password%"

      This is not working. It works with 32 bit Windows.

      Please let us know if you have any other alternative to work in windows 64 bit.

      thanks