Overclock.net - An Overclocking Community - View Single Post - Batch File arrays?

View Single Post
post #2 of (permalink) Old 08-01-2016, 01:32 AM
spinFX
New001
 
Join Date: Feb 2016
Posts: 2,668
You mention parsing variables to the batch file;

as in :
Quote:
mybatch.bat helloworld
?
You can access the string "helloworld" with %1
Subsequent variables will be %2, %3 and so on.

You can find this info within 2 seconds on google.

The same goes for writing to a text file, super easy to find on google:
Quote:
echo string you want in the text file>>textfile.txt
if you use a single ">" then you will overwrite the text file each time, ">>" will add another line each time.
Quote:
For /f "delims=" %%m in (textfile.txt) do (
echo %%m
)
will go through each line of the text file.

I think if you made an effort you could find what you are looking for within one minute on google, would save you the time of posting a question here and waiting for someone to provide an answer. There is infinite resources on the web for batch programming.

Still struggling to see what the purpose of this script is and why you have chose batch for it, seems like the wrong thing to use (or at least seems like there would be a better solution to deal with websites n stuff). Are you sure the functionality you are looking for is not already included in a browser that you can download at the moment.
spinFX is offline