Search found 8 matches

by Bluejay
24 Aug 2017 07:28
Forum: DOS Batch Forum
Topic: Greatly enhanced Math batch
Replies: 5
Views: 6212

Re: Greatly enhanced Math batch

Thank you Steffen. Correct- didn't understand what code tags are. No clue from what Sounak@9434 wrote. Very rarely use forums. 1st time, I think, ever posted a full DOS batch. Just prepared in text editor, copy/paste and submit. Didn't look for any whistles and bells. Wouldn't have recognized Code i...
by Bluejay
21 Aug 2017 08:17
Forum: DOS Batch Forum
Topic: Greatly enhanced Math batch
Replies: 5
Views: 6212

Re: Greatly enhanced Math batch

Have been hoping someone would post reply to Sounak@9434 >30 years using DOS. Never saw (or don't recognize) "Code tags" Never seen in many searches for additional command syntax and details. Additional clarification would be appreciated. Just curious. Assume posted here as possible batch ...
by Bluejay
30 Mar 2017 20:14
Forum: DOS Batch Forum
Topic: Greatly enhanced Math batch
Replies: 5
Views: 6212

Greatly enhanced Math batch

Greatly enhanced Math batch. Works perfectly. Note also 2nd called batch (Value verifier used twice)= M-CkV Methinks great interface. Well commented for those who are interested. Batch has some extra logic to handle optional user choice decimal positions for division (only). Includes user entry and ...
by Bluejay
30 Mar 2017 19:42
Forum: DOS Batch Forum
Topic: Using environment variables with replaceable parameters
Replies: 10
Views: 9434

Re: Using environment variables with replaceable parameters

Got it.
Works perfectly (as expected).
Thanks muchly.
by Bluejay
30 Mar 2017 08:46
Forum: DOS Batch Forum
Topic: Using environment variables with replaceable parameters
Replies: 10
Views: 9434

Re: Using environment variables with replaceable parameters

Thanks again. Last For command also works well. Also shows R# value before R# results. Similar problem: Trying to create D variable 1 with added zeros based on variable #. Now using Set #=4 (optional based on batch run) Set D=1 :SETD Set D=%D%0 Set /A #=#-1 If Not %#%==0 GoTo SetD Tried Setlocal Ena...
by Bluejay
29 Mar 2017 10:49
Forum: DOS Batch Forum
Topic: Using environment variables with replaceable parameters
Replies: 10
Views: 9434

Re: Using environment variables with replaceable parameters

Thanks. But this For command only echos 1 result (whatever # happens to be). Did some searching about For. After several attempts, finally figured out correct syntax: For /F %%I in (1,1,!#!) Do Echo !R%%I! This result was trial and error. Will have to do much more research to truly understand variab...
by Bluejay
28 Mar 2017 13:38
Forum: DOS Batch Forum
Topic: Using environment variables with replaceable parameters
Replies: 10
Views: 9434

Re: Using environment variables with replaceable parameters

Thank you very much, indeed. Call echo works perfectly. Completely unfamiliar with this technique. Found no reference anywhere with many! hours searching many sites. Very frustrating. Note: Have used DOS batches for about 30 years. And Norton techniques until no longer usable. Have big DOS purchase...
by Bluejay
27 Mar 2017 11:49
Forum: DOS Batch Forum
Topic: Using environment variables with replaceable parameters
Replies: 10
Views: 9434

Using environment variables with replaceable parameters

Trying to display a series of stored environment variables. For example: Set R1=1.1 Set R2=2.2 Set R3=3.3 Set R#=3 Set #=1 Tried several variations of "for" commands. None worked. Cannot echo variables containing replaceable parameter. Echos of complete individual variables works fine, e.g...