|
Last-modified: 2004-03-07 (日) 12:14:58 (7326d)
Internet Explorerで「名前をつけて保存」するときに、「Web ページ、完全」を選んだときの動作をコード化してみました。 HTMLを保存するクラス
MyHTMLDocument doc = new MyHTMLDocument(@"C:\test\original.html"); doc.Save(@"C:\saved\result.html"); MoveやCopyをすると、リンクしているファイルを格納しているディレクトリも同時に移動、リネームされます。 MyHTMLDocument.Move(@"C:\saved\result.html", @"C:\saved\moved.html"); MyHTMLDocument.Copy(@"C:\saved\result.html", @"C:\saved\copied.html");
|