IFS tilde in filename



Hi there,

We've got a couple of scanners connected to our system, which save
their files on the IFS. The filename is generated by the application
by reading a barcode.

Every once in a while the recognition of the barcode goes wrong, and
the generated filename will look something like this:

0935898300_PDF_˜20090707_151653.pdf

Not a big deal, only thing we need to do is remove the tilde character
and all is well again. However, in trying to write an automatic
procedure for this I'm confronted by a number of problems.

When I try to rename the file with legacy commands (WRKLNK, RNM), the
tilde gets replaced by an invalid character, and renaming results in
an error "Object not found. Object is...".

When I try to use Qshell to rename the objects it doesn't even find
the files. QP2Term does see the files, the tilde however is replaced
by a space (or something that resembels a space) in the filename.
Renaming via this route also fails.

The one option we have is to manually go to the IFS filder via the
Windows explorer, and using that to rename the file (i.e. removing the
offending tilde character).

Any thoughts about streamolining this procedure?

Greets, Jack
.



Relevant Pages

  • Re: IFS tilde in filename
    ... The filename is generated by the application ... only thing we need to do is remove the tilde character ... When I try to rename the file with legacy commands, the ...
    (comp.sys.ibm.as400.misc)
  • Re: Changing Uppercase filenames into Lowercase
    ... > I already found MAKEUP.COM which breaks down a filename ... > uses the RENAME command to rename lowercase names and ... > lowercase filename. ... > The filename remains uppercase because DCL uppercases ...
    (comp.os.vms)
  • Re: Trying to rename files in a folder from VBA
    ... The VBA Dir function lets you use wildcards, so assuming you know the name ... Dim rs As DAO.Recordset ... i.e. Column1 has the code and column2 contains the filename. ... I am using Access2003 and i am trying to rename all files in a folder ...
    (microsoft.public.access.forms)
  • Re: Renaming files using wildcards
    ... When I strip down the filenames of their ... spaces, the rename works well. ... strip the filename of it's spaces, ... rename command can't find the file name to rename when it ...
    (microsoft.public.windowsxp.general)
  • Re: Cannot delete folder from desktop... Item not found
    ... Open up a command prompt. ... Navigate to the folder that the object resides in. ... Find the 8.3 filename of the object to the left of the regular, ... temporarily rename it to an 8.3 ...
    (microsoft.public.windows.vista.general)