用VB生成html问题
有人可以给我一个用VB生成HTML的例子或者程序吗?
谢谢。。
如我现在需要生一个HTML,所生成的HTML存放的文件夹是:
D盘/product/显示器/SONY/001.html
001.html里面的代码可以是空的,我只要一段可以生成的代码就行了,谢谢了。
[解决办法]
Dim intFreeFile As Integer
intFreeFile = FreeFile
Open "D:\product\??ê??÷\SONY\001.html " For Output As #intFreeFile
Print #intFreeFile, " <html> "
Print #intFreeFile, " <body> "
Print #intFreeFile, " test "
Print #intFreeFile, " </body> "
Print #intFreeFile, " </html> "
Close #intFreeFile
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码)
最新版本:20070212
http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html
[解决办法]
关注一下
[解决办法]
If Dir(newPath, vbDirectory) = " " Then MkDir newPath
[解决办法]
im newpath
newpath = "e:\123 "
If Dir(newpath, vbDirectory) = " " Then MkDir newpath
[解决办法]
试一下这个
Private Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll " (ByVal DirPath As String) As Long
Private Sub Form_Load()
MakeSureDirectoryPathExists "c:\0\1\2\3\ "
End Sub
————————————————————————————————————
写作,虽然每个人都会查阅辞海,可,不是人人都能写出不朽的篇章的。编程,如是也。