【已解決】請教-執行了FileRead(FileOpen以后,_RunDos 變無效。
本帖最后由 wenquan79 于 2012-12-3 09:08 编辑如題,代碼如下,執行了FileRead(FileOpen及FileWrite(FileOpen以后,_RUNDOS會變無效,請幫忙看一下問題出在哪,謝謝!
#include <Process.au3>
$1_tex = FileRead(FileOpen("1.txt", 0))
$2_tex = FileRead(FileOpen("2.txt", 0))
$3_tex = FileRead(FileOpen("3.txt", 0))
$4_tex = FileRead(FileOpen("4.txt", 0))
FileWrite(FileOpen("Result.txt", 10), $1_tex & $3_tex & $2_tex & $4_tex)
Local $rc = _RunDos("start result.txt") 没有 FileClose。$1_tex = FileRead('1.txt')
$2_tex = FileRead('2.txt')
$3_tex = FileRead('3.txt')
$4_tex = FileRead('4.txt')
$FO = FileOpen('Result.txt', 2 + 8)
FileWrite($FO, $1_tex & $3_tex & $2_tex & $4_tex)
FileClose($FO)
Local $rc = _RunDOS('start result.txt') 回复 2# afan
原来没有fileopen,也是可以fileread的,原来都不知道,学习了! 回复 2# afan
如afan 兄所說,是沒有FileClose所致,已解決,感謝!
页:
[1]