Search found 4 matches

by jgamezu
07 Sep 2009 10:14
Forum: DOS Batch Forum
Topic: Recover a string result from executable and set a variable
Replies: 4
Views: 6257

Ohhh, Yes it works

avery larry, I did my homework thanks men with the help for other people I have this code @echo off SET count=0 FOR /f "tokens=*" %%G IN ('{your command}') DO (call :do_sums "%%G") Echo %line_str% pause GOTO :eof :do_sums set /a count+=1 Rem ****compare ...
by jgamezu
04 Sep 2009 10:59
Forum: DOS Batch Forum
Topic: Recover a string result from executable and set a variable
Replies: 4
Views: 6257

Yeah its works......

Yeah Men, I luv u!!!!!!! i got my data with: example ----------------- FOR /F "tokens=6*" %%A IN ('Net time \\{ip any computer}') DO set my_var=%%A %%B Echo %my_var% ----------------- today this resolved my problem but if the execute had a result with many lines you can see only the last l...
by jgamezu
03 Sep 2009 17:35
Forum: DOS Batch Forum
Topic: Killing a process
Replies: 4
Views: 5502

Try try try

did you try ?????

taskkill /F /IM explorer.exe
by jgamezu
03 Sep 2009 17:25
Forum: DOS Batch Forum
Topic: Recover a string result from executable and set a variable
Replies: 4
Views: 6257

Recover a string result from executable and set a variable

some executable, returns a string. Any idea how to set this string in to variable?. or recover string from terminal window??
:shock:

I execute

Net time \\{ip for any computer}
Return:
Current time at \\{ip for any computer} is {date and time}
:cry:

and set Date and time a variable this no promblem