I am trying to call a command line program from an asp file, but <!--#exec cgi="..."--> can not be used from an asp file. Is there a way to do this?
No way to script it that I know of. Best to create an Active Server object and call that from your ASP page.
There is an object out there that does just this. It is called ASPExec. It will use the command line for you. Just set the properties and your command line string. I will respond back with the URL.