Thank you avery_larry. You came up with a 100% fix for me.
This post can be closed if necessary.
Search found 4 matches
- 17 Jan 2011 13:07
- Forum: DOS Batch Forum
- Topic: Parsing command output into variable
- Replies: 8
- Views: 13912
- 17 Jan 2011 11:32
- Forum: DOS Batch Forum
- Topic: Parsing command output into variable
- Replies: 8
- Views: 13912
Re: Parsing command output into variable
that just results in: "ECHO is off."
- 17 Jan 2011 09:57
- Forum: DOS Batch Forum
- Topic: Parsing command output into variable
- Replies: 8
- Views: 13912
Re: Parsing command output into variable
The above example works of: @ECHO OFF setlocal ENABLEDELAYEDEXPANSION FOR /F "tokens=2 delims=()" %%a IN ('"%~dp0devcon.exe find =ports *VID_10C4^&PID_EA60*"') DO ( echo comnumber=%%a ) pause However, I cannot use comnumber variable anywhere else outside the loop. It returns ...
- 17 Jan 2011 08:25
- Forum: DOS Batch Forum
- Topic: Parsing command output into variable
- Replies: 8
- Views: 13912
Parsing command output into variable
I'm trying to use devcon.exe to output command information into this batch file. Once this is accompished I try to split the data it gives me using "(" delimiter and I would like to further split it so that I can get the information behind this character ")" but my variable wants...