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:
GetFullPathName
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the full path and file name of a specified file.
Code examples:
Declaration:
DWORD GetFullPathName(
  LPCTSTR lpFileName,  // file name
  DWORD nBufferLength, // size of path buffer
  LPTSTR lpBuffer,     // path buffer
  LPTSTR *lpFilePart   // address of file name in path
);
FoxPro declaration:
DECLARE INTEGER GetFullPathName IN kernel32;
    STRING    lpFileName,;
    INTEGER   nBufferLength,;
    STRING  @ lpBuffer,;
    INTEGER @ lpFilePart
Parameters:
lpFileName
[in] Pointer to a null-terminated string that specifies a valid file name. This string can use either short (the 8.3 form) or long file names.

nBufferLength
[in] Specifies the size, in TCHARs, of the buffer for the drive and path.

lpBuffer
[out] Pointer to a buffer that receives the null-terminated string for the name of the drive and path.

lpFilePart
[out] Pointer to a buffer that receives the address (in lpBuffer) of the final file name component in the path.
Return value:
If the function succeeds, the return value is the length, in TCHARs, of the string copied to lpBuffer, not including the terminating null character.
Usage:
nBufsize=260
cBuffer=REPLICATE(CHR(0), m.nBufsize)

= GetFullPathName(_vfp.ServerName,;
    nBufsize, @cBuffer, 0)

? STRTRAN(m.cBuffer, CHR(0), "")
My comment:
See also: GetLongPathName, GetShortPathName, GetModuleFileName, GetTempFileName, PathFindFileName, FindExecutable
Word Index links for the GetFullPathName :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-14 12:00:00
Modified: 2010-05-26 12:12:18
Visited in last 7 days: 13
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.163.91.250)
3 sec.Example: 'How to perform Base64 encoding/decoding using Cryptography API Functions'
8 sec.Function: 'NetApiBufferFree'
14 sec.Function: 'inet_ntoa'
20 sec.Function: 'LogonUser'
43 sec.
Function group: 'URL Monikers'
13.01 hrs.Example: 'How to convert a bitmap file to monochrome format (1 bpp)'
Language: 'Visual FoxPro'
Google
Advertise here!