![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, first a piece of code: && format a date AAMMDD rDate = dtoc(DATE()) rDate = substr(rDate, 3, 2)+ substr(rDate, 6, 2)+substr(rDate, 9, 2) && create a new folder with the format date MKDIR c:\temp\&rDate && copy a file in the new folder COPY FILE ("c:\temp\database.dbf") to ("c:\temp\"+rDate+"\database.dbf") Second, here is the problem: 1- a folder with the correct name is create (WORKING) 2- the file is not copied in the new folder (NOT WORKING) I don't understand why the file does not want to be copied (and no error). If someone have a idea . . . thanks in advance! |
#3
| |||
| |||
|
|
1- a folder with the correct name is create (WORKING) 2- the file is not copied in the new folder (NOT WORKING) I don't understand why the file does not want to be copied (and no error). |
|
MKDIR c:\temp\&rDate MKDIR ("c:\temp\" + rDate) |
|
Hi, first a piece of code: && format a date AAMMDD rDate = dtoc(DATE()) rDate = substr(rDate, 3, 2)+ substr(rDate, 6, 2)+substr(rDate, 9, 2) && create a new folder with the format date MKDIR c:\temp\&rDate && copy a file in the new folder COPY FILE ("c:\temp\database.dbf") to ("c:\temp\"+rDate+"\database.dbf") Second, here is the problem: 1- a folder with the correct name is create (WORKING) 2- the file is not copied in the new folder (NOT WORKING) I don't understand why the file does not want to be copied (and no error). If someone have a idea . . . thanks in advance! |
![]() |
| Thread Tools | |
| Display Modes | |
| |