Search found 5 matches

by wingnut0420
22 Apr 2013 07:58
Forum: DOS Batch Forum
Topic: Output of command to variable
Replies: 5
Views: 11002

Re: Output of command to variable

This is more robust, with a temp file. Code: @echo off wmic datafile where name="C:\\Program Files (x86)\\Citrix\\ICA Client\\pnagent.exe" get version /format:csv |find /v "Node,">file.tmp for /f "tokens=1,* delims=," %%a in (file.tmp) do if not defined num set "n...
by wingnut0420
22 Apr 2013 07:47
Forum: DOS Batch Forum
Topic: Batch Menus not setting variables
Replies: 4
Views: 5367

Re: Batch Menus not setting variables

Thank for this, it helped quite a bit!
by wingnut0420
19 Apr 2013 14:15
Forum: DOS Batch Forum
Topic: Batch Menus not setting variables
Replies: 4
Views: 5367

Re: Batch Menus not setting variables

Better example, cleaned up a bit Try pressing Y to first prompt....then hitting enter second time @echo off set prdico=Y set WTF= :WIconprompt IF "%prdico%"=="Y" ( Echo ================================================== Echo Prod icon detected, would you like to install Echo the ...
by wingnut0420
19 Apr 2013 14:08
Forum: DOS Batch Forum
Topic: Batch Menus not setting variables
Replies: 4
Views: 5367

Batch Menus not setting variables

Try this on for size. First run through will not set the variable "wtf" have it pausing so you can see example but second run will set it Also, try answering y to the first prompt, then just hitting enter at the next seems like the first prompt will set it but not able to read it WUT????? ...
by wingnut0420
19 Apr 2013 07:44
Forum: DOS Batch Forum
Topic: Output of command to variable
Replies: 5
Views: 11002

Output of command to variable

Trying to build a version checking batch file for various programs, one of which is Citrix Trying to pipe to output of this: wmic datafile where name='C:\\Program Files (x86)\\Citrix\\ICA Client\\pnagent.exe' get version into a variable to run against if statements. Have tried piping to a temporary ...