Код:
void my_function (char* from, char* to)
{
DownloadStatus ds;
cout << "\nDownloading " << from << " to " << to;
URLDownloadToFile( 0, from, to, 0, &ds);
}
int main(int argc, char* argv[])
{
int i;
if(argc%2!=1 || argc<3)
cout << "Error In Command Line" << endl;
for(i=1;i<argc;i+=2)
{
my_function(argv[i],argv[i+1]);
}
}