
how to execute a batch file into a VBS file
hi ,
I'm a beginner in VBS Code.
I m using a VBS file (call addusers.vbs) which read an Excel File
(Addusers.xls) to automate creation of NT users.
At the end of the VBS script, I would like to execute a .BAT file with
parameters but I don't know how ?
I tried to write source code below but it's not ok for the last line:
user = oXL.activecell.Value
passwd = oXL.activecell.offset(0, 1).Value
set fso = wscript.CreateObject("Scripting.FileSystemObject")
fso.OpenAsTextStream("d:\util.bat" + " " + user + " " + passwd)
Can Anybody help me to write the command line (source code) ?
thank you very much.
Please reply by mail.