What does this batch do?
Posted: 05 Nov 2009 04:57
I'm a noob, so u have more or less no clue of what im talking about.
I need this batch fil, to move and install (silence install) file/files to a remote computer/computers.
@echo off
for /f %%a in (computerlist.txt) do (
net use \\%%a\c$ /user:administrator
copy c:\programmer\chrome.msi \\%%a\c$\programmer
psexec \\%%a -i -u administrator -p pword msiexec.exe /i c:\programmer\chrom.msi
)
It will move the files, but not install them.
I can't figure out if its the bath file or the .msi file that is screwing up.
The .msi file will install when i double click it, but it will no install when i use the batch, i get no error.
any idears? thx
I need this batch fil, to move and install (silence install) file/files to a remote computer/computers.
@echo off
for /f %%a in (computerlist.txt) do (
net use \\%%a\c$ /user:administrator
copy c:\programmer\chrome.msi \\%%a\c$\programmer
psexec \\%%a -i -u administrator -p pword msiexec.exe /i c:\programmer\chrom.msi
)
It will move the files, but not install them.
I can't figure out if its the bath file or the .msi file that is screwing up.
The .msi file will install when i double click it, but it will no install when i use the batch, i get no error.
any idears? thx