Call SaveAs option of windows
I want to save some html files using windows Save As option to "text file " type . Can any body suggest me is there any API to do that. I have not API's so please tell me how to use them also. Note : I want to use "Save As" beacuse it will not insert the HTML tags in between the file, as happen if you use "rename" cammand from command prompt.
[email protected]
Call SaveAs option of windows
I dont want to use "Save As"dialog box to popup. CommonDialog will popup the dailogbox, which I dont want. Actaully I have some thousand of html file , which I want to convert into .txt file. Problem is if I use "rename" command , it rename the html file but add with html tags. But if "Save As" is use with text file type, it did not add those html tags with in file.
....Now I want to use that "save as" without prompting me the dailogbox. As in my case there are more than 5000 html file, so I cant afford to do it manually.
Am I clear now.................
Solution didnt work for me
Thanx Dave for ur efforts, but ur solution didnt work for me .
After this statement ''fName = Dir("*.htm") '' , there is nothing in "fname" . Is there something missing in ur code, or I am doing some thing wrong.......
Again something is missing
Hi Dave,
Thanx for ur concern......
Earlier "ChDrive ("c:\") " was missing , but still this "Set curDoc = Documents.Open(fName) " throwing this error "ActiveX component Cannot cerate object" .
Extension I had already changed to .html
Waiting for response......