dos variable
Posted: 20 Oct 2009 03:35
Hi guys,
Im having problem to open and print in notepad using batch command
if i using variable
the scenario is
My first batch is runnig which is..
"for %%x in ("c:\temp\A\"*.txt) do start /wait notepad /P %%x"
comment---it will print all the textfile inside the A folder..fine--
but my second batch is not running which is
for /f "eol=; tokens=1,2,* delims=," %%i in (runnning.csv) do start /wait notepad /P c:\temp\%%i\*.txt
comment-- i want to make folder A as a variable .the batch can read the variable but failed to open and print any textfile inside the folder (which is i variable)..
Any ideas guys .i'm running out of idea..
Im having problem to open and print in notepad using batch command
if i using variable
the scenario is
My first batch is runnig which is..
"for %%x in ("c:\temp\A\"*.txt) do start /wait notepad /P %%x"
comment---it will print all the textfile inside the A folder..fine--
but my second batch is not running which is
for /f "eol=; tokens=1,2,* delims=," %%i in (runnning.csv) do start /wait notepad /P c:\temp\%%i\*.txt
comment-- i want to make folder A as a variable .the batch can read the variable but failed to open and print any textfile inside the folder (which is i variable)..
Any ideas guys .i'm running out of idea..