computing
  • 0

[Solved] How Do i load batch variables from a file

  • 0

Hey guys i was wondering how to load a variable from a file, anyone know?
thanks for any feedback

Domo!

Best Answer

:: ===== script starts here ===============
::
:: chuey.bat 2012-09-14 15:37:53.32
@echo off & setLocal enableDELAYedeXpansioN

set N=
for /f “tokens=* delims= ” %%a in (myfile) do (
set/a N+=1
set V!N!=%%a
)
set V
::====== script ends here =================


====================================
Life is too important to be taken seriously.

M2

 

Share