Search found 6 matches

by ValComputers
29 Jan 2023 18:43
Forum: DOS Batch Forum
Topic: Help with if / loop and variables
Replies: 9
Views: 30416

Re: Help with if / loop and variables

So to revisit this I want to be able to download a txt file ( that will be downloaded and hidden in a hidden local folder on the PC ) Then ask the user to input a variable say password = ??? Then count the lines of possibles in the txt file and then use that total to test the input against each answ...
by ValComputers
03 Jan 2023 18:53
Forum: DOS Batch Forum
Topic: how to add decimal numbers using batch file?
Replies: 11
Views: 43215

Re: how to add decimal numbers using batch file?

I tried to use this code for something I am trying to do and get the .XXX answer with the decimals in the wrong place What I am trying to do ( and thought this would work for it ) is take a user input of a whole number ( any number entered ) Say 200 and then multiply that number by a percent ( 3.49%...
by ValComputers
03 Jan 2023 18:51
Forum: DOS Batch Forum
Topic: Help with if / loop and variables
Replies: 9
Views: 30416

Re: Help with if / loop and variables

you both are probably right sorry I am a total Noobie at this and just trying to work things out ... I was hoping I guess to have all the options in a different variable I think in case I needed them for another part of script I am trying to create this as sort of a password script for users so that...
by ValComputers
31 Dec 2022 23:19
Forum: DOS Batch Forum
Topic: Help with if / loop and variables
Replies: 9
Views: 30416

Re: Help with if / loop and variables

I need to compare the text variable to the user input and if it matches continue the script if not end the bat or ask again for user input

Thanks for helping with your scripting ... I truly appreciate it
by ValComputers
31 Dec 2022 21:36
Forum: DOS Batch Forum
Topic: Help with if / loop and variables
Replies: 9
Views: 30416

Re: Help with if / loop and variables

I appreciate the help but I think I wasn't clear what I was trying to accomplish is to add the lines from the file ( which is in the script you added ) Total the lines ( counted - in your script ) but then I need to ask the user for an input and once they press enter I need to loop thru the results ...
by ValComputers
30 Dec 2022 19:53
Forum: DOS Batch Forum
Topic: Help with if / loop and variables
Replies: 9
Views: 30416

Help with if / loop and variables

So I am trying to figure out how to take a total set of variables being read from a file say for example 1 2 3 4 5 set to variables and done with a count so each one would be a(1) a(2) a(3) etc etc and the count variable would be however many lines in the file in my example count=5 since there are 5...