Using Win32 functions in Visual FoxPro Image Gallery
File Management
..msdn
CopyFile
CopyFileTransacted
CreateDirectory
CreateFile
CreateFileTransacted
CreateHardLink
CreateSymbolicLink
DeleteFile
DeleteFileTransacted
FindClose
FindCloseChangeNotification
FindFirstChangeNotification
FindFirstFile
FindNextChangeNotification
FindNextFile
FlushFileBuffers
GetBinaryType
GetCurrentDirectory
GetDriveType
GetFileAttributes
GetFileAttributesEx
GetFileInformationByHandle
GetFileType
GetFullPathName
GetLongPathName
GetShortPathName
GetTempFileName
GetTempPath
LockFile
MoveFile
MoveFileTransacted
OpenFile
QueryDosDevice
ReadDirectoryChangesW
ReadFile
RemoveDirectory
RemoveDirectoryTransacted
ReplaceFile
SearchPath
SetCurrentDirectory
SetEndOfFile
SetFileAttributes
SetFilePointer
SetFilePointerEx
SetSearchPathMode
UnlockFile
WriteFile
_lclose
_lopen
Code examples:
MoveFileTransacted
..msdn    Add comment     W32 Constants      Translate this page
Moves an existing file or a directory, including its children, as a transacted operation.
Code examples:
Declaration:
BOOL WINAPI MoveFileTransacted(
    __in      LPCTSTR lpExistingFileName,
    __in_opt  LPCTSTR lpNewFileName,
    __in_opt  LPPROGRESS_ROUTINE lpProgressRoutine,
    __in_opt  LPVOID lpData,
    __in      DWORD dwFlags,
    __in      HANDLE hTransaction
);
FoxPro declaration:
DECLARE INTEGER MoveFileTransacted IN kernel32;
    STRING lpExistingFileName,;
    STRING lpNewFileName,;
    INTEGER lpProgressRoutine,;
    INTEGER lpData,;
    LONG dwFlags,;
    INTEGER hTransaction
Parameters:
lpExistingFileName [in]
The current name of the existing file or directory on the local computer.

lpNewFileName [in, optional]
The new name for the file or directory. The new name must not already exist. A new file may be on a different file system or drive. A new directory must be on the same drive.

lpProgressRoutine [in, optional]
A pointer to a CopyProgressRoutine callback function that is called each time another portion of the file has been moved.

lpData [in, optional]
An argument to be passed to the CopyProgressRoutine callback function. This parameter can be NULL.

dwFlags [in]
The move options. This parameter can be one of several predefined values.

hTransaction [in]
A handle to the transaction. This handle is returned by the CreateTransaction function.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
Minimal OS: Vista

The new name must not already exist. A new file may be on a different file system or drive.

A new directory must be on the same drive. Otherwise consider using SHFileOperation.

See also: CreateTransaction, CommitTransaction, RollbackTransaction, MoveFile, SHFileOperation
Word Index links for the MoveFileTransacted :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2010-05-25 10:46:29
Modified: 2010-05-25 10:57:00
Visited in last 7 days: 61
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (23.20.129.162)
4 sec.Function: 'SetSearchPathMode'
Function group: 'File Management'
7 sec.Function: 'CeFindFirstDatabaseEx'
Function group: 'Remote Application Programming (RAPI)'
10 sec.
Function group: 'Dynamic-Link Library'
14 sec.Example: 'How to convert a bitmap file to monochrome format (1 bpp)'
19 sec.Links
22 sec.
Function group: 'GDI+ Font'
26 sec.
Function group: 'Filled Shape'
29 sec.Function: 'FindNextFile'
Function group: 'File Management'
33 sec.Function: 'GetProcessTimes'
Function group: 'Process and Thread'
37 sec.
Function group: 'Process and Thread'
Google
Advertise here!