set command

  1. M

    Windows 10 CMD.EXE - How to fix command output into variable

    Hi! I tried to send command output to variable. I'm using is in Windows 10.1903 x64 I used syntax: SET /P variable= | command I used batch by context menu to get word, characters and lines count in text file using old WC tool (it's great). First I used only copying output into clipboard by...
  2. T

    Windows 7 [SOLVED i think..] set /p Not working properly, or If statement not working

    I'm trying to create a text-based game, but I can't get passed the menu because either "set /p" isn't taking an input, or "if '%...'" isn't seeing it. This is what I'm doing to test menus, currently :mmenu echo Main Menu echo Start echo Quit SET /P "a=Select " if "a"=="Start" [removed:then...
  3. B

    Windows 7 set /p not working

    The following code doesnt set the value of a to user input..why? Can anyone help plz... set /p a ="sdff " pause echo %a% pause
Back
Top