Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help! Print image(s) to generated filename(s).
Message
From
25/04/2005 09:34:36
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:
01008055
Views:
20
Hi Anatoliy

I should have been more specific. I have a set of files. Each can be any of a variety of types. I want to convert each of them to DCX while specifying a new unique name for each DCX.

We already have a existing process that converts them to DCX, but that process requires a PCL input file. So we've been printing them to an output PCL file. However we'd want to specify the name of that output file.

The existing process would then convert the PCL to DCX.

The end result is a DCX file, because many "end users" may access the file with an older fax machine.



>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
Reply
Map
View

Click here to load this message in the networking platform