Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help! Print image(s) to generated filename(s).
Message
 
To
22/04/2005 16:20:22
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01007706
Message ID:
01007721
Views:
18
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform