I'm trying to run a batch file in vb.net. This is the command I'm using:
System.Diagnostics.Process.Start("C:\Folder\convertTIF2PNG.bat")
The batch file is supposed to crawl through the folder it is located in and convert all the .tif files to .png. When I call the file, the command window opens (so I know something is happening), however none of the .tif files are converted. When I simply double click on the batch file in the directory, it runs properly (so I know it is not a problem with the batch file). Why is my code not running the batch file correctly? Here is the code in the batch file:
for /r %%a in (.) do (
pushd %%a
(
"C:\Program Files (x86)\IrfanView\i_view32.exe" *.tif /convert=*.png /transpcolor=(255,255,255)
erase /f/q *.tif
)
popd
)