file
Windows limitations on file and path name
The limitations have been pulled from Windows SDK header file
Using Sparse Files sample
Sparse files are only supported under Windows 2000 and later and the file must be on a volume that is NTFS 5.0 or later.
Retrieve List of Files from Clipboard
MSDN: Windows Clipboard API
| This is sample code. Add error handling and adjust to your requirements as necessary. |
* Load required Windows API functions =LoadApiDlls() * Open clipboard lnResult = OpenClipboard(_SCREEN.hWnd) * Get handle on file list structure ( Format type 15) lnHdrop = GetClipboardData (15) IF lnHdrop > 0 lcBuffer = SPACE(512) lnSize = LEN(lcBuffer) * Get number of files in the list lnFile = BITOR(0xFFFFFFFF,0) lnFileCount = DragQueryFile(lnHdrop, lnFile, @lcBuffer, lnSize ) * Get each file name
File date and time
Code below shows how to retrieve file date and time using native VFP commands or WSH. For Windows API based solution that also allows to set file date and time, see George Tasker's Windows Time hosted on UT
MSDN links:
Copy, Move, Rename File Preserving Destination Name Case
The CopyFile() and MoveFile() WIN API functions preserve the case of the name for the destination file. Alternatively, WSH can be used.
The source and destination file names should include the directory name in both cases.
Note 1 A Copy operation will not change file name case when destination file already exists (overwritten).
Note 2 The WinApiErrMsg is used to retrieve Windows API error message in case of error.
| This is sample code. Add error handling and adjust to your requirements as necessary. |
Recent comments
1 week 4 days ago
1 week 4 days ago
1 week 6 days ago
2 weeks 14 hours ago
2 weeks 1 day ago
2 weeks 4 days ago
3 weeks 4 days ago
3 weeks 5 days ago
3 weeks 6 days ago
4 weeks 3 days ago