lua-users home
lua-l archive

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


On 08/07/2013 6.31, saeid rezaee wrote:
I want to write a program with Lua that do this job:
this program get an adress of file and copy the file into windows temp directory .

You can use the native shell copy command:

  myfile = 'c:\\whatever.txt'
  os.execute('copy "' .. myfile .. '" %temp%')

(the double quotes protect against spaces in the file name)

--
  Enrico