Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
I am using vb to select a number of files from a number of directories and then write the file path to a text file called sample.txt
My sample.txt currently has one line in it that looks like this.
"c:\temp\New Folder\test.msi"I am then running the following batch code.
@FOR /F %%a IN (c:\temp\sample.txt) DO msiexec /i %%aI am getting the following error, that the installation path could not be found, I cant help notice that in the command window the command it is trying to run is as follows.
msiexec /i "c:\temp\NewSeems as though the spaces in the path are messing it up, but i have got the path in quotes??
Can anyone speculate as to what the problem here might be?
Thanks

Hi guys, I am off work ill so can't test this as all the code is on my office computer but i did try Razor2.3's solution before posting here and it didn't have the desired effect. Thanks anyway mate.
I will give klint's solution a bash on Monday and report back.
Thanks guys

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |