241 | | char *fromfilec = fromfile.getcstr(); |
242 | | char *tofilec = tofile.getcstr(); |
243 | | CopyFile (fromfilec, tofilec, FALSE); |
244 | | delete fromfilec; |
245 | | delete tofilec; |
246 | | |
247 | | #else |
248 | | text_t cp_cmd = "cp " + fromfile + " " + tofile; |
249 | | char *cp_cmdc = cp_cmd.getcstr(); |
250 | | system (cp_cmdc); |
251 | | delete cp_cmd_c |
252 | | |
253 | | #endif |
254 | | } |
| 241 | char *fromfilec = fromfile.getcstr(); |
| 242 | char *tofilec = tofile.getcstr(); |
| 243 | CopyFile (fromfilec, tofilec, FALSE); |
| 244 | delete fromfilec; |
| 245 | delete tofilec; |
| 246 | |
| 247 | #else |
| 248 | text_t cp_cmd = "cp " + fromfile + " " + tofile; |
| 249 | char *cp_cmdc = cp_cmd.getcstr(); |
| 250 | system (cp_cmdc); |
| 251 | delete cp_cmdc; |
| 252 | |
| 253 | #endif |
| 254 | } |