Running a batch file from VB6

Dell / OPTIPLEX 755
July 29, 2009 at 03:26:09
Specs: Microsoft Windows XP Professional, 2.327 GHz / 2013 MB

I have a vb 6 program that all seems to work great. this program writes a list of filenames to a text file, below is a sample of the text file (sample.txt)


I then have a batch file called msiexec.bat, the batch file is below.

FOR /F %%a IN (sample.txt) DO msiexec /i %%a

now in the VB program I have a button that when clicked does this.

Shell("c:\temp\msiexec.bat", vbMaximizedFocus)

The problem here is that it isn't working and the only part i am not 100% on is the part where i call the msiexec.bat file from within the VB program.

Can anyone offer any tips and advice on how to proceed with this?


See More: Running a batch file from VB6

Report •

July 29, 2009 at 07:38:44
got this working, not sure whats different tbh, i just put the full path in the batch file and it worked.

Report •
Related Solutions

Ask Question