Bytes of the renamed files are changing

I have copied some files from the server to my local directory. When I did this the files copied are fine, because the number of bytes have not changed. The files copied are:
NCB_____.PFB - 36 KB
NCBI____.PFB - 37 KB
NCI_____.PFB - 36 KB
NCR_____.PFB - 42 KB
Then I am renaming the files copied to my local directory. But the bytes are changing.
pcnb8a.PFB - 37 KB
pcnbi8a.PFB - 37 KB
pcnr8a.PFB - 37 KB
pcnri8a.PFB - 37 KB
My code is
void naming1(File readXMLfile,File destFiles, String rename, String renameSub, String fontName, String fontsIntallPath) throws IOException
     File dstfile=new File(destFiles,readXMLfile.getName());
     String newFileName = dstfile.getName().replaceFirst("[^.]*", rename);
     newFile = new File("C:\\temp\\fonts",newFileName);
     dstfile.renameTo(newFile);
}Could someone please help me.

Well obviously rename doesn't corrupt the files, it's just a granularity effect, or maybe the files have only just been closed?
But why are you renaming .PFB files at all? Not what their authors intended, and you may break the fonts in the process.

Similar Messages

  • I just updated to 5.7 and the exported files are blurry. I compared the ones I exported before the change and they are fine. I have not change any settings.

    I just updated to 5.7 and the exported files are blurry. I compared the ones I exported before the change and they are fine. I have not change any settings.

    I don't understand your last paragraph.
    "The home page also has a full bar ..." What does "full bar" mean? " ... instead of the tray it had before."  What does "tray" mean?
    Anyway, you might try Settings > General > Reset > Reset Home Screen Layout
    I guess that cannot make things any worse.

  • FMS  - change directory where the log files are located?

    I want to change the logs files directory from:
    C:\Program Files (x86)\Adobe\Flash Media Server 3.5/logs
    to:
    D:\fmsLogs
    Please halp me to understand...
    in adobe in:
    Home / Flash Media Server  3.5 Configuration and Administration Guide / XML configuration files reference
    it says:
    in Logger.xml in Directory
    Specifies the directory where the log files are located.
    By default, the log files are located in the logs directory in the server installation directory.
    Example:
    <Directory>${LOGGER.LOGDIR}</Directory>
    what this meens: ${LOGGER.LOGDIR} ?
    in order to change the logs files directory from:
    C:\Program Files (x86)\Adobe\Flash Media Server 3.5/logs
    to:
    D:\fmsLogs
    do i need to write this:
    <Directory>D:\fmsLogs</Directory>
    or what do i neet to write?
    it is totaly not understandable from this example...
    big thanks for any halp
    cheinan

    You can change LOGGER.LOGDIR in fms.ini to your preferred location i.e. D:\fmsLogs and restart FMS.
    Now if you want to change for individual logs - you can change in Logger.xml - by default logger.xml will use value from fms.ini

  • When I import TIF and JPG files with same metadata, only the TIF files are imported. How can I change that?

    I have imported and renamed TIF and JPG files with the same metadata re recording date and time. Only the TIF files are imported, the JPG files remain unimproved. Thus I have in the Finder e. g. 13 image files in the same folder in which Lightroom only finds 10 files. Any ideas for resolution welcome!
    Thanks

    Turn off the option Preferences > General > Treat JPEG Files Next To Raw Files As Separate Photos.  Then do an import again.  It appears that, in this instance, LR considers a TIFF to be a "raw" file.

  • "Volume not found" I have 3 iphoto_libraries stored in a external disk, while the actual files are in other external disk. Ive moved together iphotolibraries and files but: HOW CAN I TELL THE LIBRARIES WHERE TO FIND THEM NOW?

    I have three iphoto_libraries stored in a external disk PASSPORT (one for each trip imovie Im making -Ive managed this way the libraries so to not confuse the trips) while the actual files are in OTHER external disk LACIE. And everything was fine: imovie find each library, could work with it, or iphoto could edit the files.
    But one day everything crashed at the same time: i opened iphoto to find 3 different scenarios:
    1) iphoto_library GREECE was there, but not the albums i prepared. no events. when double click in any of them: "Volume not found"
    2) iphoto_library ITALY was there, and the albums i prepared too, but empty.
    in both cases I can only see the photos in 'photos'  because 'events'  shows some events with photo preview and some with no preview, just some kind of preset clipart palm tree, but if i enter the event, photos are there but again: when double click in any item: "Volume not found"
    3)  iphoto_library ISRAEL was there, the albums too, when double click in any of them: all OK
    The 3 libraries was managed the same way. Meaning: Ive imported photos to iphoto from external disk LACIE in a iphotolibrary stored in another external disk PASSPORT. Also: I don't have unchecked the option "copy to file" or something like that. photos where moved, not copied. Also i have all the movie_libraries in the PASSPORT as well. What happened??
    Solution? Nothing yet. Ive moved now all the photo folders from LACIE together in PASSPORT with the iphotolibraries but problem persist:
    HOW CAN I TELL THE LIBRARIES WHERE TO LOOK FOR THE VOLUMES NOW?
    "Volumes" are the original files aren't them?
    Please help. this is so annoying to try and find in the forum, to tricky to explain
    I have a Macbook pro retina Yosemite 10.10.1 / iphoto 9.6 (910-29)/ iMovie 10.0.6
    THANK YOU
    Vicky

    The 3 libraries was managed the same way. Meaning: Ive imported photos to iphoto from external disk LACIE in a iphotolibrary stored in another external disk PASSPORT.
    This is not clear, especially when you say
    I don't have unchecked the option "copy to file" or something like that. photos where moved, not copied.
    Especially as the message you're getting is typical of a library where the ' option "copy to file" or something like that' is unchecked.
    So it's a simple question:
    Are you these Managed or Referenced Libraries?
    A Managed Library, is the default setting, and iPhoto copies files into the iPhoto Library when Importing. The files are then stored in the Library package
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing because you made a change at iPhoto -> Preferences -> Advanced. (You unchecked the option to copy files into the Library on import) The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management.

  • I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    and there were and have been problems with any two nvidia cards which was the main part of my question.
    To provie details try pasting all but serial number from system profile. Sorry but Mac Pro tells me nothing, not model, year, or what graphic card it came with or updated with.

  • I just bought lightroom 5. I had lightroom 3. Now when I export my photos from lightroom 5 and upload them into my photoshop elements program to edit the photo files are at 100% zoom percentage. When I upload photos from my old lightroom 3 program they co

    I just bought lightroom 5. I had lightroom 3. Now when I export my photos from lightroom 5 and upload them into my photoshop elements program to edit the photo files are at 100% zoom percentage. When I upload photos from my old lightroom 3 program they come into photoshop at 14% zoom percentage which is what I want them to come in at so I can zoom them in to detail the skin. What might have changed settings wise between the 2 programs, I cannot figure it out.

    I just bought lightroom 5. I had lightroom 3. Now when I export my photos from lightroom 5 and upload them into my photoshop elements program to edit the photo files are at 100% zoom percentage. When I upload photos from my old lightroom 3 program they come into photoshop at 14% zoom percentage which is what I want them to come in at so I can zoom them in to detail the skin. What might have changed settings wise between the 2 programs, I cannot figure it out.

  • I saved a word file onto my imac.  when i go to open file in documents with pages the file is grey and unable to open.  the workable files are highlighted in bold.  is there a way to open this file????

    i saved a word file onto my imac.  when i go to open file in documents with pages the file is grey and unable to open.  the workable files are highlighted in bold.  is there a way to open this file????

    THis is safe for Mac's? Sorry, I have just never heard of this site before.
    And there are literally tens of thousands of sites of which I've not heard, too. Not this one.
    It's legit. There are lots of links in Apple Support Communities to the LibreOffice web site, as well as others that are legitimate open-source developers of options to buying MS Office, such as NeoOffice and OpenOffice. I have Open Office installed on one of my older Macs that can't run Office 2011 and it is rock-solid.
    I've been here too long to start posting bogus urls now.

  • I moved iTunes folder location, now all my personal song ratings and playlists are gone.  How can I get them back?  All the iTunes files are intact, just in a new location.  Running iTunes 11.1.5.5

    I moved iTunes folder location, now all my personal song ratings and playlists are gone.  How can I get them back?  All the iTunes files are intact, just in a new location.  Running iTunes 11.1.5.5 on Windows 7

    Put everything back the way it was.
    Them move the folder correctly.
    http://support.apple.com/kb/ht1364

  • Can you create a playlist when the associated files are not present?

    I want to let my friend create a playlist from songs in MY library, but from HIS computer, so I copied my Library.itl and Library.XML files to his PC to let him peruse what I have. Obviously this only lets hin VIEW the songs, NOT play them. Is there a way he can create a playlist that I can then move back to my library and put on my iPod?
    I've tried dragging and dropping as well as right click>Add to Playlist, but neither method works when the files associated are not present.
    Is it possible?

    No.  iTunes will only add media to a playlist if the media files are present.

  • Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?

    Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?
    I've installed three times with no luck. I downloaded the Creative Cloud Packager off the licensing site: https://licensing.adobe.com. I unpacked and choose my applications. The install seemed to be successful, but I don't so any of the applications anywhere.

    Hi,
    Creating package doesn't mean it will install the product,
    You will need to install the package now. Please follow the instructions mentioned in the below articles
    Creative Cloud Help | Creating or editing packages
    Creative Cloud Help | Deploying packages
    Please let me know if it doesn't help.
    Regards,
    Devendra

  • Itunes cannot run because some of the required files are missing?

    This morning when I turned on my computer my itunes was suddenly not working. When I double click the desktop icon to open it up, I get an error message that reads:
    iTunes cannot run because some of the required files are missing. Please reinstall iTunes.
    I searched the FAQ archive and still cannot find an answer to my problem.
    THe last part of the error message says to reinstall itunes, but I cannot even get the corrupt version off. Is there anyway to save the music I have on here? Another user and I have separate iTUnes music, so a great deal of music will be lost, including things recently purchased.

    Thank you so very much. I don't know why I didn't think of that but it is up and running fine now

  • "there was a problem connecting to the server. URLS with the type 'file' are not supported"

    i have a new macbook pro 13" and every 6 minutes or so it pops up a window that says "there was a problem connecting to the server. URLS with the type 'file' are not supported". it never seems to cause any problems but is supremely annoying. how can i make this come to an end?

    I tried someone's solution of taking another external disc and plugging it in, then when it showed up and time machine asked if I wanted to use it or that someone might be trying to trick me, I chose not use it.  Then I  shut down my computer, plugged in the original Lacie, and rebooted the computer and all seems to work fine now-- the Lacie appears on my desktop and all seeems to be in working order. Who knows why or anything else,- as weird as it gets- but for now things seemed fixed--- maybe others can try this too-- it worked for me so far.

  • "There was a problem connecting to the server.   URLs with the type "file:" are not supported.  Why?  What can be done to eliminate it?

    After upgrading to Mountain Lion, I repeatedly get this message:  "There was a problem connecting to the server.   URLs with the type "file:" are not supported. 
    Why? 
    What can be done to eliminate it?

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • Message - There was a problem connecting to the server. URLs with the type "file:" are not supported

    new macbook pro receving this message: There was a problem connecting to the server. URLs with the type "file:" are not supported. What is causing this and how do

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

Maybe you are looking for