$sTxt = "Consts.txt" ;文本文件名称 $sPath = @ScriptDir ;文件所在文件夹路径 $sCnn = "Driver={Microsoft Text Driver (*.txt; *.csv)};" & "DBQ=" & $sPath & "\;Persist Security Info=False" $sSql = "SELECT * FROM " & $sTxt $rst = ObjCreate("ADODB.Recordset") $rst.Open($sSql, $sCnn) For $i = 1 To 10 ConsoleWrite($rst.Fields("Name").Vaule & @CRLF) $rst.Movenext Next
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-12-25 14:02 , Processed in 0.087399 second(s), 23 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.