Lua programming - os.execute() is not working in Windows

前端 未结 4 1431
刺人心
刺人心 2021-01-25 02:06

I\'m creating a function in pure-Lua to scan the files from a directory and put they on a another file.

The command I tryed was:

os.execute( \"dir /B C:         


        
4条回答
  •  轮回少年
    2021-01-25 02:21

    Most of the commands you listed appear to be shell commands that only work within a command prompt. Try running cmd.exe directly to see if you get a prompt, and if so, you can try passing commands to cmd.exe via the /c option. You could also try notepad without the start to see if that runs.

提交回复
热议问题