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:
01466026
Views:
58
No it works for network shares only.

>
>it's ok on a local drive too ?
>
>bernhart
>
>>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
Reply
Map
View

Click here to load this message in the networking platform