lua-users home
lua-l archive

Re: NEWBIE Question: LUA wait() function?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Jeff Pohlmeyer wrote:
local vb="test.vbs"
local f=io.open(vb)
f:write("WScript.Sleep(1000)\n")
f:close()
for i=1,10 do
print("Waiting")
io.flush()
os.execute(vb)
end
- local f=io.open(vb)
+ local f=io.open(vb,"w")
--
Shmuel

AltStyle によって変換されたページ (->オリジナル) /