Share via

Copy folder

sky system 1 Reputation point
2021-12-10T16:19:27.863+00:00

I want to copy a folder with all dbf in a folder which is created namely current date and i am trying this code please solve this problem. Bellow this code what to modify ?

SET DATE TO BRIT
LOCAL lcFolderName, loEx AS Exception
lcFolderName = "e:\backup\" + DTOS(DATE())
IF !DIRECTORY(lcFolderName)
TRY
MKDIR (lcFolderName)
! xcopy "d:\comtech\dat" "lcFolderName"
CATCH TO loEX
ENDTRY
ENDIF

Community Center | Not monitored

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.