Have a need to replace this line of code, I'm at work and no more PB at work because I'm on NMCI and it's tightly controlled.
(In fact they refused my request for PB, they'd rather pay $2500 for VB/DOT-NET Enterprise than do the paperwork to add PB to the DATUMS list.
(I digress)
With this...
because Dir$,16 on UNC paths SEEMS to be returning that all files are "Directories" thus NO files are getting copied over....or deleted (as deemed by this application).
The application has been rock steady for 4 or 5 years, copying/deleting files based on file/date and time....(Using FindNextFile).....but I have to be absolutely sure I don't delete the Oracle transaction logs (again)
- The DBA's started storing the transaction logs in the folder used for User export (Doh).....
So I have to verify it's NOT a folder...
Scott Turchin
(In fact they refused my request for PB, they'd rather pay $2500 for VB/DOT-NET Enterprise than do the paperwork to add PB to the DATUMS list.
(I digress)
Code:
If Len(Dir$(RemoteFile,16)) Then Iterate 'it's a directory - do not delete
Code:
Local FileInfo As WIN32_FILE_ATTRIBUTE_DATA Local fInfoLevelId As GET_FILEEX_INFO_LEVELS '<---------------- Local lResult As Long lResult = GetFileAttributesEx(Byval Strptr(FileSpec),fInfoLevelId,FileInfo) If FileInfo = %FILE_ATTRIBUTE_DIRECTORY Then Iterate
The application has been rock steady for 4 or 5 years, copying/deleting files based on file/date and time....(Using FindNextFile).....but I have to be absolutely sure I don't delete the Oracle transaction logs (again)

So I have to verify it's NOT a folder...

Scott Turchin
Comment