if wscript.arguments.count<>6 then wscript.quit set sh = createobject("wscript.shell") set fs = createobject("scripting.filesystemobject") dir=fs.getparentfoldername(wscript.scriptfullname) sh.run """"&dir&"\doWork.bat"&""" """&wscript.arguments(0)&""" """&wscript.arguments(1)&""" """&wscript.arguments(2)&""" """&wscript.arguments(3)&""" """&wscript.arguments(4)&""" """&wscript.arguments(5)&"""",0 rem &wscript.arguments(0)