求VB高手解释下列代码 一步步分析 Open App.Path & "\CONAN.bat" For Output As #1 Print #1 ,"@Shutdown Open App.Path & "\CONAN.bat" For Output As #1Print #1 ,"@Shutdown -s -f -t 1"Close #1Shell App.Path & "\CONAN.bat"

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/08 05:13:46
求VB高手解释下列代码 一步步分析 Open App.Path &

求VB高手解释下列代码 一步步分析 Open App.Path & "\CONAN.bat" For Output As #1 Print #1 ,"@Shutdown Open App.Path & "\CONAN.bat" For Output As #1Print #1 ,"@Shutdown -s -f -t 1"Close #1Shell App.Path & "\CONAN.bat"
求VB高手解释下列代码 一步步分析 Open App.Path & "\CONAN.bat" For Output As #1 Print #1 ,"@Shutdown
Open App.Path & "\CONAN.bat" For Output As #1
Print #1 ,"@Shutdown -s -f -t 1"
Close #1
Shell App.Path & "\CONAN.bat"

求VB高手解释下列代码 一步步分析 Open App.Path & "\CONAN.bat" For Output As #1 Print #1 ,"@Shutdown Open App.Path & "\CONAN.bat" For Output As #1Print #1 ,"@Shutdown -s -f -t 1"Close #1Shell App.Path & "\CONAN.bat"
Open App.Path & "\CONAN.bat" For Output As #1
'Open语句打开文件CONAN.bat进行输出,App.Path表示程序所在文件夹路径,For Output表示输出,As #1文件号表示文件CONAN.bat.
Print #1 ,"@Shutdown -s -f -t 1"
'Print语句在文件1中写入@Shutdown -s -f -t 1
Close #1
'Close语句关闭文件1
Shell App.Path & "\CONAN.bat"
'Shell函数运行批处理文件CONAN.bat