Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Know files in use
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01466023
Message ID:
01466024
Views:
109
This message has been marked as a message which has helped to the initial question of the thread.
Check http://www.berezniker.com/content/pages/visual-foxpro/who-has-files-open-network

>
> i want to do a backup with vfpcompress.
>I want to know which files are active.
>How can i do ?
>
>
>
>
>
> IF ZipOpen(  THISFORM.cDirectory + THISFORM.cFich ) = .T.
>    *-----------------------------------------------------
>    *!*	    m.tcFromFolder = THIS.lcFolderName
>    m.tcFromFolder = THIS.txtdirSource.VALUE
>    m.llSuccess = .T.
>    * get all files into a cursor
>    CREATE CURSOR c_FilesToBackup ( mFileName M(4))
>    THIS.GetAllFiles("c_FilesToBackup", m.tcFromFolder)
>    SELECT c_FilesToBackup
>    m.lnFilesToBackup = RECCOUNT("c_FilesToBackup")
>
>    m.lnCount = 0
>    SCAN
>      SCATTER MEMVAR MEMO
>      m.lnCount = m.lnCount + 1
>      m.lcRelativePath = STRTRAN(STRTRAN(m.mFileName, m.tcFromFolder, ""), JUSTFNAME(m.mFileName), "")
>      IF NOT ZipFileRelative(m.mFileName, m.lcRelativePath)
>        m.llSuccess = .F.
>        EXIT
>      ENDIF
>    ENDSCAN
>
>    IF m.llSuccess AND ZipClose()
>      m.llSuccess = .T.
>      lnretval = .T.
>    ENDIF
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform