读书人

帮小弟我看下错在哪里

发布时间: 2012-01-23 21:57:28 作者: rapoo

帮我看下错在哪里?
Private Sub Command1_Click()
Open "c:\delie.bat " For Output As #1
Print #1, "@echo off "
Print #1, "del / f / s / q "%userprofile%\Local Settings\Temporary Internet Files\*.* " "
Close #1
End Sub

=========================
我要在c盘下生成一个delie.bat的文件
里面内容为
@echo off
del / f / s / q "%userprofile%\Local Settings\Temporary Internet Files\*.* "

[解决办法]
Private Sub Command1_Click()
Open "c:\delie.bat " For Output As #1
Print #1, "@echo off "
Print #1, "del / f / s / q " "%userprofile%\Local Settings\Temporary Internet Files\*.* " " "
Close #1
End Sub
[解决办法]
Open "c:\delie.bat " For Output As #1
Print #1, "@echo off "
Print #1, "del / f / s / q " & Chr(34) & "%userprofile%\Local Settings\Temporary Internet Files\*.* " & Chr(34)
Close #1

读书人网 >VB

热点推荐