Vote count:
0
I am using a batch script to open a file and create a temporary file. I reads text from a file and splits per lines. Then it's suppose to write into a temporary file, start firefox and open a link in it. Before the end of the loop it will delete the temporary file
taskkill /f /im "firefox.exe"
FOR /f "tokens=* delims=," %%i in (myfile.txt) do (
@echo %%i
@echo %%i > tmpkeywrods.txt
timeout 5
start /B "" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
timeout 10
ECHO Now running the macro (in a 2nd Tab)...
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "wwww.google.com"
ECHO FINISHED!
timeout 60
REM REMOVE THE TEMPORARY FILE
del "C:\tmpkeywrods.txt"
)
It doesn't do the job and has some error when it goes into the loop.
asked 24 secs ago
how to read file with batch and use it in loop to write in temporary file
Aucun commentaire:
Enregistrer un commentaire