我想下載多個文件說www.google.com,yahoo.com或gmail.com在使用wget 3個不同位置。我應該如何去做呢?請幫我..使用wget命令下載多個文件在不同的位置
我通過C#做的這一切:
ProcessStartInfo startInfo = new ProcessStartInfo("CMD.exe");
Process p = new Process();
startInfo.RedirectStandardInput = true;
startInfo.UseShellExecute = false;
startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardError = true;
p = Process.Start(startInfo);
p.StandardInput.WriteLine(@"wget --output-document=C:\1.xml xyz.com/a.xml");
p.StandardInput.WriteLine(@"wget --output-document=C:\2.xml xyz.com/b.xml");
p.StandardInput.WriteLine(@"wget --output-document=C:\3.xml xyz.com/c.xml");
p.StandardInput.WriteLine(@"EXIT");
string output = p.StandardOutput.ReadToEnd();
string error = p.StandardError.ReadToEnd();
p.WaitForExit();
p.Close();
這是行不通的。想知道是否有[R使用wget下載多個文件的任何方式行吟詩人..
它是如何「不工作」? – paxdiablo 2013-05-09 06:11:11