Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9222
| From | "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Copy and Rename issue |
| Date | 2016-04-01 12:41 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <ndlj2a$uck$1@dont-email.me> (permalink) |
| References | <4e7739c9-396c-4a91-8767-7763e8a8e4a4@googlegroups.com> <7801c885-e68e-46a2-8b0f-eb9a22564ace@googlegroups.com> <76417a95-77a6-4c97-aff5-6b50a8e8f277@googlegroups.com> |
Hello Philippe, there is the possibility that the Mailclient program together with Windows or Antivirus programs block the file exclusively for antivirus protection reasons. In this case your own program is blocked until the file is released but you block finishing the operation exactly by this waiting operation. Probably you have to delay the processing of the file until the Drag/Drop operation has been finished completey. Arne Ortlinghaus ACS Data Systems "Philippe Bayard (Belgium)" <philbayard@gmail.com> schrieb im Newsbeitrag news:76417a95-77a6-4c97-aff5-6b50a8e8f277@googlegroups.com... Well, it's exactly the point of my problem. I cannot rename it. I'm trying to. But none of the VO function allow me to rename it properly. The system works like this Outlook => Drop to desktop (.msg file) => From desktop drop to the app. With this way, i'm unable to rename it in any way because i don't have any control of the name of the file created by Outlook. We have another way of working with outlook (via an add-in) and with this way, i can rename the msg file but for people who doesn't work with the add-in, i'm done. ;) Le vendredi 1 avril 2016 09:34:30 UTC+2, Sjonnie D a écrit : > > 4) FileSpec + Filespec:Rename()ofs: > > FileSpec Works ( FileSpec:filename gives "1DXT684 - MAZDA MX-5 - LA > > ROCCA Marc - Ethias 2015020361 021 - Autopia #14016?" with a "?" coming > > from no where...) > > Jean-Philippe, > When an email is dropped from a mailclient, the file name is created from > the email subject. A subject can contain characters that are not allowed > in filenames. The "?" is probably a hidden unicode character. > > Before renaming the file to its destination, we always make a copy to a > file with a valid filename. This means we replace all unwanted characters > with a "_" and limit the length to 64: > > cNewName := "" > For i := 1 to Min(Slen(cFileName),64) // cFileName without path or > extention, max 64 characters. > cChar := substr(cFileName,i,1) > if IsAlpha(String2Psz(cChar)) .or. IsDigit(String2Psz(cChar)) .or > cChar=="." > cNewName += cChar > else > cNewName += "c" > endif > next i > > After the fcopy to cNewName, we can rename it anyway you want. > > Best Regards, > John
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
Copy and Rename issue "Philippe Bayard (Belgium)" <philbayard@gmail.com> - 2016-03-31 08:37 -0700
Re: Copy and Rename issue "Philippe Bayard (Belgium)" <philbayard@gmail.com> - 2016-04-01 00:18 -0700
Re: Copy and Rename issue Sjonnie D <Sjonnied@gmail.com> - 2016-04-01 00:34 -0700
Re: Copy and Rename issue "Philippe Bayard (Belgium)" <philbayard@gmail.com> - 2016-04-01 00:43 -0700
Re: Copy and Rename issue D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2016-04-01 12:29 +0200
Re: Copy and Rename issue "Philippe Bayard (Belgium)" <philbayard@gmail.com> - 2016-04-01 05:20 -0700
Re: Copy and Rename issue "Philippe Bayard (Belgium)" <philbayard@gmail.com> - 2016-04-01 06:34 -0700
Re: Copy and Rename issue "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2016-04-01 12:41 +0200
csiph-web