answersLogoWhite

0


Best Answer

Translating exactly what you've written (including the obvious typo):

set x1y1LOAD = % % x % counterX % y % conuterY %

I think what you really mean is:

set x1y1LOAD=%x %counterX% %y %counterY%

However, this is meaningless since x, y, counterX and counterY are undefined.

If x and y are really meant to be arguments passed from the command line then it should be:

set x1y1LOAD = %1 %counterX% %2 %counterY%

But if they are variable references then it should be:

set x1y1LOAD = %%x %counterX% %%y %counterY%

However, you still have to define what x, y, counterX and counterY actually are.

Let's flesh it out a bit to at least get something that actually works (using command line arguments):

@echo off

set counterX=1

set counterY=1

set x1y1LOAD=%1 %counterX% %2 %counterY%

echo x1y1LOAD=%x1y1LOAD%

If you save this as LOAD.CMD and then call LOAD x y, you will see the following:

C:\>load x y

x1y1LOAD = x 1 y 1

Am not sure how useful this would be in the real world, but without knowing the context I can't really take this much further.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use variables in variables in Batch. Like this but working set x1y1LOAD equ percent percent x percent counterX percent y percent conuterY percent?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do I interpret data from a given table with frequency percent valid percent cumulative percent Each one has different levels of measurement such as nominal ordinal interval and ratio?

The answer depends on what the variables are and whether or not there are any scientific or economic (or other) laws linking the variables. A lot more basic information is required before you can start interpreting data in any meaningful way.


What is the concluding step in percent-aging a bivariate table?

The concluding step in percent-aging a bivariate table is interpreting the percentages to identify any patterns, trends, or relationships between the variables. This involves comparing the percentage distributions across the rows or columns to draw insights about the association between the variables in the table.


If the selling price of model B is 60 percent more than the selling price of model A what percent of the total sales do the sales of model A represent?

You have missing variables such as the critically important total sales.


What blow up ratio gives you 15 percent transverse shrink?

The answer to that question has way too many variables....maybe 2:1


How fast does 3 percent hydrogen peroxide degrade?

Impossible to predict - depends on far too many variables - temperaure, exposure to light, contaminants etc etc.


If x percent of y is 10 what is x?

There you have two variables, x and y, so you need two independent equations in order to solve this. It cannot be solved without another equation.


What does it mean when The efficiency of an average gasoline powered car is about 25 percent?

It means 25 percent of the energy consumed to power the car is turned into useful energy. So if it is 100% efficient, then you can say that it will go 4 times as fast as a 25% efficient car. (not realistic because there are a lot of other variables)


What is the value of a 357 smith and Wesson model 19 this gun si 95 percent of new?

since you didn't give the condition of the 357 there are variables the easiest way to really find out is go on gunsamerica.com and search for it


How many ounces of the 50 percent alcohol solution should be mixed with the 1 percent alcohol solution to make 8 oz of the 20 percent alcohol solution?

Let x = ounces of 50% solution, and y = ounces of 1% solution. So that we have: 0.5x + 0.01y = 8(0.2) which is a linear equation in two variables, meaning there are infinitely many choices of mixing those solutions.


In a scientific experiment what is the definition of a variable?

Pretty much as it is in math, something that is undefined, but in Science it needs to be defined or the experiment cant continue. Your variables are basically what you measure, what you change and your control, both positive and negative (one with a 100% percent positive result and another with a 100% negative result)


How many pounds of compression should a stock 1977 304 have?

Too many variables, what you want to see is less than 10 percent difference between the lowest reading and the highest reading of all cylinders for a healthy engine.


How much does a trade credit insurance policy cost?

This price of this policy is all dependent on several variables, but it typically costs half of one percent of insured sales. Rates are dependent on trading history, and historical debt loss.