Question Locked

Running a EXE from a VBS script

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am tring to run an an application that will ACL users local profiles. The aplication is called Profwiz.exe

I would like to write a VBS script that reads a inputfile that contains computer names,

Then

Run this command for each computer in the inputfile.

c:\Profwiz.exe /COMPUTER "ComputernameHere" /LOG "Computername.log"

What would be the correct syntex for this.

2 replies

by oldbaritone

for %x in (list-of-computers) do command /C C:\Profwiz.exe /COMPUTER "%x" /LOG "%x.log"

This discussion is closed to new replies.