Hi,
In some application (for example, Total Commander or Explorer) I can highlight the file name and copy it to the clipboard. Is it possible to do the same from the FWH code ?
Hi,
In some application (for example, Total Commander or Explorer) I can highlight the file name and copy it to the clipboard. Is it possible to do the same from the FWH code ?
Yes, sure
You can do it from a GET, or a Memo, or a RichEdit, etc.
Also you can place and recover any content on the clipboard programmatically
Please review FWH\samples\testclip.prg
You may try:
? hb_utf8tostr( *?.pdf ) // The name that you get
This doesn't fit
Please post here each char (numeric code) that you get so we can try different solutions
Antonio, it will be easier if I give a link to the file. His name contains the code CC 86
hi,
have download PDF but can not open it with Firefox, EDGE or Sumatra.
i have rename PDF but still it can not be open by any of PDF-Reader which i use
so it is not a Fivewin or Clipboard "Problem" ... it is "something" with your PDF
function convertUmlaute( cVData )
local ctest := ""
local I := 0
// for I := 1 to len(cVData)
// ? ( cVData + CRLF + substr(cVData,I,1) + " # "+ str( ASC ( substr(cVData,I,1)) ))
// next
cVData := STRTRAN(cVData, chr(174), "®" )
cVData := STRTRAN(cVData, chr(228), "ä" )
cVData := STRTRAN(cVData, chr(132), "ä" )
cVData := STRTRAN(cVData, chr(246), "ö" )
cVData := STRTRAN(cVData, chr(148), "ö" )
cVData := STRTRAN(cVData, chr(252), "ü" )
cVData := STRTRAN(cVData, chr(129), "ü" )
cVData := STRTRAN(cVData, chr(196), "Ä" )
cVData := STRTRAN(cVData, chr(142), "Ä" )
cVData := STRTRAN(cVData, chr(214), "Ö" )
cVData := STRTRAN(cVData, chr(153), "Ö" )
cVData := STRTRAN(cVData, chr(220), "Ü" )
cVData := STRTRAN(cVData, chr(154), "Ü" )
cVData := STRTRAN(cVData, chr(223), "ß" )
cVData := STRTRAN(cVData, chr(225), "ß" )
cVData := STRTRAN(cVData, chr(224), "à" )
cVData := STRTRAN(cVData, chr(225), "á" )
return(cVData)Does not fit - returns the file name with "?"
I have a lot of files on the network with this problem, so I wrote a utility to rename these files via CMD
Natter, this is an example.
You have to check your ASCII values and then substitute.
// for I := 1 to len(cVData)
// ? ( cVData + CRLF + substr(cVData,I,1) + " # "+ str( ASC ( substr(cVData,I,1)) ))
// next
cVData := STRTRAN( cVData, chr( your value ), "your character" )
Regards,
Otto
hi,
> I made an empty file
sorry i have "oversee" that Size is 0
now i have try to "copy" it with ShFileOperation() Function and got Error that Target file can not create/found ...
Question : did you get File as Attachment ![]()
Natter,
I get Пресненский.pdf (name of the file, though it has zero bytes) here
What parameters are you providing to Directory() ?