Hello, I would like to run dynamically generated Shell commad. The Shell command looks like this:
Shell "wscript somepath\script.vbs parametr i", vbNormalFocus
I would like to run this script for sequnce of paramets i like following:
Sub gen()
For i=1 To 10
Shell "wscript somepath\script.vbs parametr i", vbNormalFocus # I know this doesn't work.
End SubNext i
I tried to generate sequnce of commands in external txt file. The textfile contains serie of lines bellow, but I don't know how to run it.
Shell "wscript somepath\script.vbs parametr 1", vbNormalFocus
Shell "wscript somepath\script.vbs parametr 2", vbNormalFocus
Shell "wscript somepath\script.vbs parametr 3", vbNormalFocus
Bookmarks