I have two batch files named as :
1) Combine.bat
2) Picenquiry.bat
The contents of Combine.bat file are as:
Code: Select all
@echo off
for %%A in (*.txt) do (
echo Processing file '%%A'
FOR /F "delims=" %%L in (%%A) do (
ECHO %%L%%A >> DataFile.txt
)
)
Code: Select all
@echo off
ren "F:\meter_pictures\??????rc*." *.txt
rem call "F:\meter_pictures\combine.bat"
Code: Select all
strReportpath = "F:\meter_pictures\"
Shell strReportpath & "Picenquiry.bat"
But when I run Picenquiry.bat file directly without using VBA i.e. by double clicking file name, it runs and make "DataFile.txt".
What mistake I am doing? Please help me. Its urgent.