WOW! I was really overcomplicating things. I fixed the problem. Below is the script that works-
set /a abc=%1
:N1
copy 1.exe c:\winnt\%abc%.exe
set /a abc=%abc% - 1
if %abc% LSS 1 goto end
goto N1
:end
echo works!
in response to MiggyD:
1. the user input is in the form of the %1 variable.
2. No, my code has not worked, because I cant seem to get the syntax right. I believe that Dos is able to do simple arithmatic. What I need it to do is incredibly basic. all I want to be able to do is add 1 to a...
What I am trying to do is create a sript that will take an input value in the form of a number, and then copy "1.exe" with the input number as the name. Then I want it to subtract one from the input number and repeat the process, creating many #.exe files, all identical except for the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.