0
我一直在嘗試做一些研究,但沒有運氣如何使用Perl來編寫代碼來更改Internet Explorer的默認主頁。我做了一些編碼,但是我還沒有找到任何可以讓我更改默認主頁的東西。這是我到目前爲止完成的代碼。任何人有任何提示或建議,甚至任何有用的網站?謝謝!使用Perl更改Internet Explorer的默認主頁
use Win32::OLE;
print "What would you like to change Internet Explorer's default home page to?\n";
print "No spaces allowed.\n";
chomp($url=<STDIN>);
while (!$url)
{
print "Cannot be blank! Please enter again.\n";
chomp($url=<STDIN>);
}
while ($url)
{
if ($url =~ /\s/)
{
print "No spaces. Please re-enter:\n";
chomp($url=<STDIN>);
}
#This is where the code to change the homepage would go.
print "\nYour default Internet Explorer home page has been changed!";
exit;
}
非常感謝。這很完美! – StrikerMcP