VB.NET Shell Command calling .cmd file with Parameter and Passing to VBS file fails
Posted on 2010-01-04
I have a VB.NET application which outputs a file. I have a .CMD file which it shell executes passing the name of the file it created. This .CMD file in turn calls a VBS file passing it the paramter. That VBS file in turn creates a CDO object and sends the file as an attachment.
The cmd to vbs with a parameter works fine from the command line but fails in the shell execute within the VB.net application.
Any advise on this would be greatly appreciated.