-
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...- MIRKOSOFT
- Thread
- batch file character count clipboard cmd command output error resolution file path line count message command output path correction script help scripting set command syntax error text count variables wc tool windows 10 word count
- Replies: 5
- Forum: Windows Help and Support
-
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...- Tievan
- Thread
- batch file debugging game development if statement input issues script error set command text game windows commands
- Replies: 1
- Forum: Programming and Scripting
-
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- brainuee
- Thread
- batch file command line debugging echo input pause scripting set command variables windows
- Replies: 1
- Forum: Programming and Scripting