Search found 5 matches

by bocsi6
10 Nov 2018 03:52
Forum: DOS Batch Forum
Topic: Writing Batch code in an easier way with the aid of macros
Replies: 16
Views: 16397

Re: Writing Batch code in an easier way with the aid of macros

Hi, Aacini, Excuse me for these pretty stupid questions, but I am just on the way to get more experience in Batch file programming. I know that these ones do not belong to this forum, but in connection with this theme I can read on the net a lot of rubbish ideas and I wanted to get really proper ans...
by bocsi6
09 Nov 2018 14:49
Forum: DOS Batch Forum
Topic: Writing Batch code in an easier way with the aid of macros
Replies: 16
Views: 16397

Re: Writing Batch code in an easier way with the aid of macros

Hi, Aacini, Here I am again with a newer question. I read on the same site : 1.line set file= 2.line for %file% %%a in (*.*) do echo File: %%a 1.line : as I know with set file= command I can delete the <file> variable, that is <file> variable already does not exist (not defined). And in the 2.line y...
by bocsi6
09 Nov 2018 10:31
Forum: DOS Batch Forum
Topic: Writing Batch code in an easier way with the aid of macros
Replies: 16
Views: 16397

Re: Writing Batch code in an easier way with the aid of macros

Hi,
You wrote me : The value of the variable option is not a valid command.
Why is it not a valid command, as to call a batch macro the usual form is %macro% ?
In this case why is %option% form not valid ?
Thanks for answer
by bocsi6
09 Nov 2018 09:44
Forum: DOS Batch Forum
Topic: Writing Batch code in an easier way with the aid of macros
Replies: 16
Views: 16397

Re: Writing Batch code in an easier way with the aid of macros

Hi, Aacini,
You wrote as a simple batch macro :

set /P option=Enter the desired option [Insert,Delete,Update]:
goto %option%

Why did you have to use
Goto %option%
instead of simply
%option% ?

Thanks for answer
Greets bocsi6