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="..."
>cExistingName="..."
>= 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.