Your eplaination say that the problem is bucause I'm putting quotes aroud the args. I'm not sure what that means. Do you mean that removing the quotes from the testArgs delcaration would solve the problem? How would I do that?
I want to keep the function.
Your proposed solution moves the command switch. I want to keep the switch as part of the testCommand as opposed to part of testArgs. Is there a reason this can't be done?
Can you explain what is happening in my script that is breaking it and explain the minor changes needed for it to work?
Thanks
Main Topics
Browse All Topics





by: miller06Posted on 2009-03-22 at 09:35:31ID: 23952165
Its because your putting quotes arround the args. You can adjust your code to below and it will work. As a note, you're better off just using the run command as is rather than passing it to a function.
Also, if you change the Run command to
shell.Run Quote(testCommand) & testArgs, 0, false
It will always be hidden
Select allOpen in new window