How to use the Windows 95/98/Me Copy and Recycle functions in VB (165919)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q165919 SUMMARY Through the Microsoft Windows API, you can copy,
move, rename, or delete a file system object by using the
SHFileOperation API function that Shell32.dll exports. This article describes how to copy a list of files into a named folder and then move them to the
Recycle Bin. You can use the SHFileOperation API function to move, to rename, or
to delete a file system object based on the flags that are passed to this function. You
can also set the title of the progress dialog box by assigning a custom string
to the lpszProgressTitle member of the SHFILEOPSSTRUCT structure. However, to do this
requires some special handling.
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
151799
How to use the animated copy functions in Windows 95/98/Me
In Visual Basic 6.0, you can use the
FileSystemObject object to copy, to move, to rename, and to delete files. However, you cannot use the
FileSystemObject object to move files to the Recycle Bin.
Modification Type: | Minor | Last Reviewed: | 8/30/2004 |
---|
Keywords: | kbAPI kbhowto KB165919 |
---|
|