How to copy file in another directory ?
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

How to copy file in another directory ?

Started by didpoy, 17 July, 2007, 11:09:03

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

didpoy

Hello
(Sorry my English is not perfect ...)

Lua 5.x

How to copy files to another directory ??

Example:
Copy c:\fichier.txt to c:\backup\fichier.txt

I know the command: rename ("","") but copy ???

Thank for your Help

Bye

bastya_elvtars

Either run the copy Windows command, or open the file and save its contents into another location.
Everything could have been anything else and it would have just as much meaning.

didpoy

re

Not, I would like to do it via an order script lua 5.x for Ptokax?!!!

thank

bastya_elvtars

You can run the copy command via os.execute(), the only pitfall is a dos window popup. You have to do the other way if this is unacceptable.
Everything could have been anything else and it would have just as much meaning.

didpoy

re

Thank's for your reponse..

It's good

Bye

didpoy

Thank you for this lua source?

Here is good work which will be quite useful for me?

Thank you So long

bye

SMF spam blocked by CleanTalk