Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help! Print image(s) to generated filename(s).
Message
 
À
22/04/2005 16:20:22
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01007706
Message ID:
01007721
Vues:
17
Mike,

Description for the CreateHardLink API looks promising: establishes a hard link between an existing file and a new file.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/createhardlink.asp
BOOL CreateHardLink(
  LPCTSTR lpFileName,
  LPCTSTR lpExistingFileName,
  LPSECURITY_ATTRIBUTES lpSecurityAttributes
);
FoxPro declaration and usage should be like this:
DECLARE INTEGER CreateHardLink IN kernel32;
	STRING lpFileName, STRING lpExistingFileName, INTEGER sa

LOCAL cNewName, cExistingName
cNewName="..."  && the output name in required format
cExistingName="..."  && the original filename
= CreateHardLink(cNewName, cExistingName, 0)
My guess: you'll be able to print the file using its second name. Warning: I did not try, just a guess.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform