Using Win32 functions in Visual FoxPro Image Gallery
Shell Functions
..msdn
AssocQueryString
DllGetVersion
DragAcceptFiles
DragFinish
DragQueryFile
DragQueryPoint
FileIconInit
FindExecutable
GetFileNameFromBrowse
GetMenuContextHelpId
GetWindowContextHelpId
InetIsOffline
IsUserAnAdmin
PathMakeUniqueName
PathYetAnotherMakeUniqueName
RealDriveType
RestartDialog
SHAddToRecentDocs
SHBrowseForFolder
SHCreateDirectory
ShellAbout
ShellExecute
ShellExecuteEx
Shell_GetImageLists
Shell_NotifyIcon
SHEmptyRecycleBin
SHFileOperation
SHFormatDrive
SHGetFileInfo
SHGetFolderPath
SHGetPathFromIDList
SHGetSpecialFolderLocation
SHGetStockIconInfo
SHParseDisplayName
SHQueryRecycleBin
SHSimpleIDListFromPath
WinHelp
Code examples:
Deleting files into the Recycle Bin
Displaying standard progress dialog box when copying files
How to remove a directory that is not empty
SHFileOperation
..msdn    Add comment     W32 Constants      Translate this page
Copies, moves, renames, or deletes a file system object.
Code examples:
How to remove a directory that is not empty
Displaying standard progress dialog box when copying files
Deleting files into the Recycle Bin
Declaration:
int SHFileOperation(
    LPSHFILEOPSTRUCT lpFileOp
);
FoxPro declaration:
DECLARE INTEGER SHFileOperation IN Shell32;
    STRING @lpFileOp
Parameters:
lpFileOp
[in] Address of an SHFILEOPSTRUCT structure that contains information this function needs to carry out the specified operation.
Return value:
Returns zero if successful, or nonzero otherwise.
My comment:
You should use fully-qualified pathnames with this function. Using it with relative path-names is not thread-safe.

When used to delete a file, SHFileOperation will attempt to place the deleted file in the Recycle Bin. If you wish to delete a file and guarantee that it will not be placed in the Recycle Bin, use DeleteFile.

While operating on a file this function displays a standard progress dialog box unless the FOF_SILENT flag is set in fFlags. The lpszProgressTitle parameter sets the title of this dialog.

See also: CopyFile, CopyFileTransacted, MoveFile, MoveFileTransacted, DeleteFile, DeleteFileTransacted
Word Index links for the SHFileOperation :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-07-27 18:34:42
Modified: 2010-05-25 10:59:21
Visited in last 7 days: 27
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.237.151.188)
2.22 min.Example: 'How to delete a service object'
Google
Advertise here!