首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

帮小弟我看下错在哪里

2012-01-23 
帮我看下错在哪里?PrivateSubCommand1_Click()Openc:\delie.bat ForOutputAs#1Print#1,@echooff Print

帮我看下错在哪里?
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

热点排行