Renaming files issue

Hello everyone, I've been working on a program that will rename all files, picture files in this case, to a different name. I have two string arrays. The first is a string jpg: this is the file name of the picture before the name change. The next string is a name string: this will be the new name the picture file will change to. I'm using a index file to get all information for the two strings, and all works. I am even able to do a System.out.println(ChangeMePlease.delete(Test)); Please look at my code and tell me where I'm going wrong. Thank you all!
import java.io.*;
public class NameChange {
     public static void main(String args[]) throws IOException {
          FileReader file = new FileReader("T:\\CS34\\index.txt");
          BufferedReader buffer = new BufferedReader(file);
          int maxIndex = -1;
          String temp;
          String jpg[] = new String[652];
          String name[] = new String[652];
          do {
               temp = buffer.readLine();
               if (temp !=null) {
                    maxIndex++;
                    jpg[maxIndex] = temp.substring(20,31);
                    name[maxIndex] = temp.substring(36,57);
          } while (temp != null);
          for(int count = 0;count-1<maxIndex;count++) {
               name[count].trim();
               String CMP = new String("T:\\CS34\\ChangeMePlease\\" + jpg[count]);
               File ChangeMePlease = new File(CMP);
               String Te = new String("T:\\CS34\\ChangeMePlease\\" + name[count]); 
               File Test = new File(Te);
               System.out.println(ChangeMePlease.renameTo(Test));
}

MarkGutierrez wrote:
I HAVE gotten something simpler working.... I am able to directly change ONE file but not the array of files one at a time.
About the trim, which is completely irrelevant to what I'm trying to fix, it is used to take all the white spaces out of the text that I am recieving from the "index" file.If it is irrelevant, why are you calling it? Do you realize that it can't change the string it is applied to, because strings are immutable.

Similar Messages

  • Weird file renaming permission issues

    Hi!
    We have a file rename permission issue. Here is the background:
    We created a 2008 R2 DFS namespace called UserData with Read/write share permissions for Administrators, Everyone and System. UserData has been granted NTFS permissions as follows:
    Everyone (This folder only): Traverse folder / Execute files, List folder / Read data, Read attributes, Create folders / Append data
    CREATOR OWNER (Subfolders and files only): Full control
    SYSTEM (This folder, subfolders and files): Full control
    Domain Admins (This folder, subfolders and files)
    We then enabled folder redirection for users My documents folder through GPO, setting the following:
    Setting: Basic - Redirect everyones folder to the same location
    Target folder: Create a folder for each user under the root path
    \\domain\UserData
    We also unchecked Grant the user exlusive rights to documents.
    So, now to the really weird behaviour. We logged on to a Windows 7 (x64) client computer with a user who gets this GPO settings and that is not local administrator on the client. The folder is redirected as expected and we can create, delete and write to
    files in anyway we want. We can also rename files if we choose an entirely different name and if we choose a longer or a shorter file name,
    but we cannot rename the file to something with the same letters but different casing.
    Examples of what will work:
    "test" to "testing"
    "test" to "cool"
    "test" to "COOL"
    Examples of what will NOT work:
    "test" to "Test"
    "test" to "tesT"
    "test" to "TEST"
    We the get this error: "File Access Denied. You need permission to perform this action. You require permission from S-1-5-21-220..... to make changes to this file."
    Eventhough I'm pretty sure the share and NTFS permissions of the share are correctly set we have of course checked all the permissions when logged in and the user has Full NTFS control and Read/Write Share permissions.
    We have encountered the same problem on a customer company as well, with a different domain with no links to our domain what so ever. I have also seen similar problems from other people when trying to find the answer on internet. Here is an example:
    http://social.technet.microsoft.com/Forums/en/w7itprosecurity/thread/35ced5bb-ab13-4e28-8c48-7c68ce0b775c
    Anyone have any thoughts?
    /Leyan

    Resent discoveries:
    If I log onto a Windows 7 (x86) Enterprise I face the same Issues.
    If the same user logs on to one of the DFS servers holding the namespace and accesses his folder we experience
    no problems renaming files.
    Customer company states that all is working fine when user logs on to a Windows XP with SP3.
    /Leyan

  • Key repeat issues when renaming files

    I am having trouble with the cursor arrow key repeating when renaming files. When I press and hold the left or right arrows while renaming in Cover Flow view, it starts scrolling through the files instead of moving the cursor through the filename.
    This also seems to happen when renaming files on an attached USB device. Instead of moving the cursor it moves the file selection bar after a few cursor repeat actions.
    Has anyone else encountered this issue? Is there a fix?

    This has been bugging me too. I noticed it right back when Leopard was still 10.5.0 and thought they would have at least acknowledged it by now. In coverflow view, the files scroll across the covers, in list mode the folder tree collapses if you hold the left arrow key. And another annoying thing Leopard does is that when you're renaming, if any file in that folder changes, it abandons the rename instead of continuing, making your keystrokes move up and down the list of files without warning.

  • Rename files or folders in Windows 8 not working

    Rename a file or folder on a Windows CE device is not working from Windows 8 when connected through Windows Mobile Device Center.
    From Windows 7 it worked just fine!
    This has been a problem for a very long time now, and im not alone according to all forums.
    But no fix as far as i can find!
    Is there anyone that have found a fix on this?

    http://answers.microsoft.com/en-us/windows/forum/windows8_1-files/windows-8-unable-to-rename-files-on-pocket-pc/abae21b7-7ee1-41c7-853e-1ac7ea5b0413
    It seems a issue in window 8.x system. Maybe you can ask for a MS support ticket. 

  • Sharepoint 2013 ItemAdded event receiver for renaming files is not working

    In SP 2013 I coded an event receiver that intercepts the ItemAdded event and it just renames the file.
    It is a synchronous event (I added <Synchronization>Synchronous</Synchronization> in the Elements.xml).
    This is the code:
            public override void ItemAdded(SPItemEventProperties properties)
                SPSecurity.RunWithElevatedPrivileges(delegate()
                    try
                        OutputDebugStringA("Inside ItemAdded");
                        string szHttpUrl = properties.WebUrl + "/" + properties.AfterUrl;
                        SPWeb openedWeb = properties.Web.Site.OpenWeb(properties.Web.ID);
                        SPFile spf = openedWeb.GetFile(szHttpUrl);
                        EventFiringEnabled = false;
                        string szUrl = properties.AfterUrl;
                        szUrl = szUrl + ".renamed";
                        string szNewFileName;
                        if (szUrl.LastIndexOf('\\') != -1) szNewFileName = szUrl.Substring(szUrl.LastIndexOf('\\') + 1);
                        else if (szUrl.LastIndexOf('/') != -1) szNewFileName = szUrl.Substring(szUrl.LastIndexOf('/') + 1);
                        else szNewFileName = szUrl;
                        if (properties.ListItem != null)
                            properties.ListItem["Title"] = szNewFileName;
                            properties.ListItem.Update();
                        spf.MoveTo(szUrl);
                        EventFiringEnabled = true;
                        base.ItemAdded(properties);
                        OutputDebugStringA("Renaming to " + szUrl);
                    catch (System.Exception exception)
                        OutputDebugStringA("ItemAdded ERROR: " + exception.ToString());
    The problem is that when I upload a .txt file using Internet Explorer, just after the renaming is done, IE says that something went wrong and when I inspect the log files I see:
    SPRequest.GetFileAndFolderProperties: UserPrincipalName=i:0).w|s-1-5-21-4050800873-4278272723-3073177257-500, AppPrincipalName= ,bstrUrl=http://sp2013/sites/demo/subsite1 ,bstrStartUrl=Shared Documents/test2.txt ,ListDocsFlags=16400 ,bThrowException=True 0fa7689c-674b-5045-c3a2-b214a5d4cbed
    01/09/2014 15:29:26.75  w3wp.exe (0x1544)                        0x16F4 SharePoint Foundation        
     General                        ai1wu Medium   System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>,
    StackTrace:    at Microsoft.SharePoint.SPWeb.GetFileOrFolderProperties(String strUrl, ListDocsFlags listDocsFlags, Boolean throwException, SPBasePermissions& permMask)     at Microsoft.SharePoint.SPFile.PropertiesCore(Boolean
    throwException)     at Microsoft.SharePoint.SPFile.get_Length()     at Microsoft.Office.RecordsManagement.PolicyFeatures.ApplicationPages.UploadPage.OnSubmit(Object o, EventArgs e)     at Microsoft.Office.RecordsManagement.PolicyFeatures.ApplicationPages.UploadExPage.OnSubmit(Object
    o, EventArgs e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeSta... 0fa7689c-674b-5045-c3a2-b214a5d4cbed
    ...gesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext
    context, AsyncCallback cb)     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr
    rootedObjectsPointer, IntPtr nativeRequestContex... 0fa7689c-674b-5045-c3a2-b214a5d4cbed
    ...t, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr
    pHandler, RequestNotificationStatus& notificationStatus)     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr
    rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) 
     0fa7689c-674b-5045-c3a2-b214a5d4cbed
    So it is clear that the fact that I renamed the file is causing an issue in the SharePoint upload logic.
    As a solution what I did was to not declare it as Synchronous, but if I do it then there is another error when Sharepoint shows the Edit Properties dialog... in this case the upload is OK but when it is time to show that Edit Property dialog IE fails and
    says that the file has been already modified, or that "something went wrong".
    If I use a synchronous event I get one problem. If I use the asynchronous event I get another problem... It's very frustating and I am pretty sure that a so important API like Event Receivers should have support renaming files so I hope someone can tell
    me what I am doing wrong.
    Thanks in advance

    May be you want to consider using the following code and see if it works for you.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/40c78e03-2dca-4083-89d2-a7430099da68/how-do-i-change-the-name-property-of-a-file-in-a-document-library?forum=sharepointdevelopment
    Amit

  • Renaming files/folders on desktop: weird.

    Hi
    Since I have OSX Lion, and I want to rename files/folders on my desktop nothing happens.
    Or at least not what is suppose to happen. Pressing enter in a finder window works perfect, like always.
    But when I hit enter on a file or folder on my desktop it go's blank.
    I can't see what i'm doing, but the name will change if I typ a new one. Quit confusing and realy difficult to work with. Any idea's how to fix this?

    This has been driving me nuts but I accidentally found the cause...but not the solution.  It is a Lion thing as spaces did not have this issue.
    I am assuming you are using multiple screens (mission control, formerly spaces).  If you go to screen 1 and try to rename the file you CAN see the name as you rename it.  If you go to any other screen and try to rename it you get the blank space. 
    In my case I never rename files on my main screen.  I always rename them on which ever screen I am working (word is screen 5, so docx saved to the desktop are renamed on screen 5).

  • How can I automatically rename files based on an excel doc?

    I am a scientist and recieve data files from some of my experiments with arbitrary, computer-generated names. For example, if I perform an experiment with four samples, which I name Sample1, Sample2, Sample3, and Sample4, I get back 4 data files named J30935D05.ab1, J30935E05.ab1, J30935F05.ab1 and J30935G05.ab1 along with an Excel doc that lists my names for the samples (sample1, sample 2, etc.) in one column and the computer-generated names for their corresponding files (J30935D05.ab1, J30935E05.ab1, etc.) next to them in another. Therefore, I must open the Excel file and look up which file corresponds to which sample before I can begin processsing my data. Usually these experiments involve a large enough number of samples (70-100 or so) such that looking everything up in the Excel doc gets very tedious and is quite time-consuming. Is there any way to create an automator workflow, applescript, or some other solution to rename these files based on the Excel doc? To clarify, I would like an automator workflow that would take a folder of arbitrarily named files, look up the names I have for the samples in the Excel doc, and rename the files accordingly. In the example, my folder containing files J30935D05.ab1, J30935E05.ab1, J30935F05.ab1 and J30935G05.ab1 would be turned into a folder containing the files renamed as Sample1.ab1, Sample2.ab1, Sample3.ab1, and Sample4.ab1. This example is a bit simplified, however, and trying a simple trick of just systematically renaming files within the folder would not work--both the original and the new file names must be looked up in the Excel doc, as these change dramatically from experiment to experiment. I would also need to maintain the file extension on each file after being renamed. Any help would be greatly appreciated!!

    Try the freeware utility Renamer4Mac (VersionTracker or MacUpdate).
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Prelude Renaming Files Error

    I get this error when trying to ingest and rename files to my hard drive... I only get file to transcode and make alias name w/ the ext. _1. What in the process am i missing or what is it about the possible file that I am not seeing that is not allowing me to specify and ingest with a chosen file name?

    Hi Johnny,
    Could also check the AME version you are using? The latest version of Prelude is 2.2.0 and the AME is 7.2.0. Please ensure you have upgraded them to the latest version.
    If your platform is Win and you want to transcode a clip to 'QuickTime', please install QuickTime software on your machine.
    Hopfully this will resolve your issue, if not, just let me know.
    Thanks,
    Jenny

  • Rename files in Prelude?

    I don't see a way to rename video files in Prelude.  Coming from a still photo background I have always renamed files to a sensible name at the point of import.  If this can't be done in Prelude is there a suggestion on how to do this before prelude?  Kind of a prelude to using prelude?!?  For now I will continue to import and rename both still and vid files in Lightroom but would like to see this in Prelude.
    Thanks.

    Hi Mike
    Thanks for your response.
    Actually this is my first time working with the file based system. XDCAM. Usually the guys give me a single video file for footage and use it just it straight up.
    But since I was given an XDCAM I did a search and came across this post. So being my first time not sure how helpful I can be but let me give you my current workflow so maybe this can help answer your question above.
    I don't work with producers or directors I work with the end user or "viewer" as the case may be. So they are not technical and I can not tell them to get a copy of prelude and mark it up for me.
    What I do is take the raw footage and transcode to a web friendly size ( at this point quality is not the issue but cut points are) and load them up to my site for the client to review and give me notes according to timecode.
    Now when I load 20 of these up there and need to link them to my pages I like the files to be something I can understand. So I don't have to write down some sort of reference sheet so I can put the correct video on the correctly worded page.
    Of course I can easily batch transcode in media encoder but it is nice to be able to view the files as a group in prelude. (and would be nice to) rename each one while I am looking at it and know what clip it is. then transcode all in one step renanming the originals as an alias if you like in the project panel but would like my transcoded files to be renamed also for the upload.
    Not sure how it all works across the other programs yet, but I would like that if I can once on the initial ingest rename files to something I can easily understand what they are and be able to use that across the holy trinity Prelude, Premiere and After Effects. That would be most helpful

  • Cant install PSE 11 shared files issue?

    Hi - I cant seem to install PSE 11 as I keep getting shared file issues. Ive managed to work my way into the manual error log and its saying this - Any ideas please? Please go slow I am so not technical at all!
    Thanks
    *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    Visit http://www.adobe.com/go/loganalyzer/ for more information
    *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    START - Installer Session
    *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    RIBS version: 3.5.8.0
    Win OS version: 6.1.1.0 64 bit Type: 1
    ::START TIMER:: [Total Timer]
    CHECK: Single instance running
    CHECK : Credentials
    Load Deployment File
    Create Required Folders
    Assuming install mode
    Looking up install source path
    Sync Media DB ...
    ::START TIMER:: [Sync Media DB]
    Pre check media db sync
    End of Pre check media db sync. Exit code: 0
    :: END TIMER :: [Sync Media DB] took 247.39 miliseconds (0.24739 seconds) DTR = 371.882 KBPS (0.363166 MBPS)
    Ready to initialize session to start with ...
    ::START TIMER:: [CreatePayloadSession]
    -------------------- BEGIN - Updating Media Sources - BEGIN --------------------
    Updated source path: C:\Users\Nina\Adobe Photoshop Elements 11\PSE 11\ElementsSTIInstaller
    Updating media info for: {0449467E-102A-4514-9F4D-91BCEE129390}
    Ignoring original data since install source is local
      Type: 0, Volume Order: 1, Media Name: Adobe Photoshop Elements 11
      Path: C:\Users\Nina\Adobe Photoshop Elements 11\PSE 11\ElementsSTIInstaller\payloads\ElementsCameraRawProfile7.0All-160512123011\Install.db
    Updating media info for: {2EBE92C3-F9D8-48B5-A32B-04FA5D1709FA}
    Ignoring original data since install source is local
      Type: 0, Volume Order: 1, Media Name: Adobe Photoshop Elements 11
      Path: C:\Users\Nina\Adobe Photoshop Elements 11\PSE 11\ElementsSTIInstaller\payloads\AdobeXMPPanelsAll\Install.db
    Updating media info for: {3A8D4A3A-5E08-4E33-8831-50CB4DC101E6}
    Ignoring original data since install source is local
      Type: 0, Volume Order: 1, Media Name: Adobe Photoshop Elements 11
      Path: C:\Users\Nina\Adobe Photoshop Elements 11\PSE 11\ElementsSTIInstaller\payloads\ElementsCameraRaw7.1All-x64\Install.db
    Updating media info for: {5A73BC84-244A-48B4-ADDB-99CE9E2DBBE7}
    Ignoring original data since install source is local
      Type: 0, Volume Order: 1, Media Name: Adobe Photoshop Elements 11
      Path: C:\Users\Nina\Adobe Photoshop Elements 11\PSE 11\ElementsSTIInstaller\payloads\ElementsCameraRaw7.1All\Install.db
    Updating media info for: {98CE8819-87AA-4814-8167-ADDDD513485F}
    Ignoring original data since install source is local
      Type: 0, Volume Order: 1, Media Name: Adobe Photoshop Elements 11
      Path: C:\Users\Nina\Adobe Photoshop Elements 11\PSE 11\ElementsSTIInstaller\payloads\PSE11STIInstaller\Install.db
    Updating media info for: {D1B83970-7269-48BE-8B0E-5120D9327E52}
    Ignoring original data since install source is local
      Type: 0, Volume Order: 1, Media Name: Adobe Photoshop Elements 11
      Path: C:\Users\Nina\Adobe Photoshop Elements 11\PSE 11\ElementsSTIInstaller\payloads\AdobeAPE3.101-mul\Install.db
    Updating media info for: {F6F5021E-0548-43C1-82CC-C5C7A6906585}
    Ignoring original data since install source is local
      Type: 0, Volume Order: 1, Media Name: Adobe Photoshop Elements 11
      Path: C:\Users\Nina\Adobe Photoshop Elements 11\PSE 11\ElementsSTIInstaller\payloads\ElementsCameraRawProfile7.0All\Install.db
    --------------------  END  - Updating Media Sources -  END  --------------------
    Supported RIBS version range: [0.0.66.0,3.5.8.0]
    [    3392] Tue Jul 02 20:12:47 2013 ERROR
    Payload {98CE8819-87AA-4814-8167-ADDDD513485F} of version: 4.0.19.0 is not supported by this version: 3.5.8.0 of RIBS
    Payload {D1B83970-7269-48BE-8B0E-5120D9327E52} of version: 4.0.19.0 is not supported by this version: 3.5.8.0 of RIBS
    Unsupported payload versions included
    [    3392] Tue Jul 02 20:12:47 2013  INFO
    :: END TIMER :: [Total Timer] took 326.856 miliseconds (0.326856 seconds) DTR = 293.707 KBPS (0.286824 MBPS)
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 3 error(s), 0 warning(s)
    ERROR: Payload {98CE8819-87AA-4814-8167-ADDDD513485F} of version: 4.0.19.0 is not supported by this version: 3.5.8.0 of RIBS
    ERROR: Payload {D1B83970-7269-48BE-8B0E-5120D9327E52} of version: 4.0.19.0 is not supported by this version: 3.5.8.0 of RIBS
    ERROR: Unsupported payload versions included
    Search the same string above to find when the error occured.
    Exit Code: 21 - payloads version is not supported by installed version of RIBS
    *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    END - Installer Session
    *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*

    I have come across this on another forum but I dont have any idea how to do this? Can someone help please?
    So resolve this TIME consuming problem, i had another look at that support page and this is what i did to fix it Thank you for your help 99jon for the link.
    Copied the elements folder to the root of the HD, then renamed the folder with the installer files contained within to c:\PSElements9Installer then ran the setup.exe as administrator and hey presto, it worked and fully completed the install grrrrr.
    Cheers people of the Digital World, ive now relieved my stress
    Was this helpful?Yes  NoSubmit
    Reply

    Mark as:
        1 posts
    11-Apr-2013
    Currently Being Moderated
    3. TangAdmin,
    11-Apr-2013 17:04   in reply to Digital Controller
    Report
        Had the same problem with PSE10 Copying it to kthe root of c and renaming it to PSElements10Installer Worked perfectly.  
    thanks to all involved
    Was this helpful?Yes  No

  • MAC to Windows Server2008 share renaming files leaving 0 byte original

    Hi all
    We are experiencing a weird issue on our Design studio MACS that are connected to a Windows Server 2008 R2 file server.
    When renaming files, it is leaving behind the original file at 0 bytes, these are generally image files PSDs, Jpgs etc
    It is also intermittently taking a long time when typing the characters and trying to save the change back to the server.
    Has anybody experienced something like this or knows where to start in finding solution?
    We have 1 Mac Pro and 4x 27" IMacs
    Thanks in advance

    Hi all
    We are experiencing a weird issue on our Design studio MACS that are connected to a Windows Server 2008 R2 file server.
    When renaming files, it is leaving behind the original file at 0 bytes, these are generally image files PSDs, Jpgs etc
    It is also intermittently taking a long time when typing the characters and trying to save the change back to the server.
    Has anybody experienced something like this or knows where to start in finding solution?
    We have 1 Mac Pro and 4x 27" IMacs
    Thanks in advance

  • Rename files and retain portions of the original filename

    I posted a thread about this a while ago, but no solution was given:
    http://discussions.info.apple.com/thread.jspa?threadID=2564646
    The issue is this: I can't figure out how to rename imported files while also retaining part of the original filename. The images come off of the camera like this:
    DSC_3497.nef
    I need to do the following:
    +- Retain the unique number that the image already has. I don't want to rename the files by date, location, lunar phase, or some other esoteric identifier. I think having a unique ID for each image (one that shows up in standard OS-level searches on both Mac and PC systems) is useful.+
    +- Replace "DSC" with the camera model (D3X), since I use multiple cameras with different resolutions and also need to be able to search for images from a certain camera outside of Aperture (i.e. tags/keywords would not help).+
    +- Add a digit prior to the four-digit string to indicate the true numeric sequence of the file. Since Nikon cameras reset the number sequence every 10,000 files, I want to indicate the true sequence number directly in the filename. This will also avoid filename overlaps. It also lets me know how many images I've shot with each camera.+
    The intended final result would look like this:
    D3X_63497.nef
    Showing the 63,497th image taken with my D3X.
    In Aperture's "File Naming" dialog, I don't see a way to split the existing filename in this way. It looks like I can only append or prepend a Custom Name to the Version/Master name. I don't see a way to split the existing filename at the underscore, for example, so that portions of the original filename can be selectively replaced.
    This is not about finding a workable naming scheme for Aperture and then renaming all existing files. I spend time on the PC side for various things and also work with a number of people who don't use Aperture but need access to my image library. I also have hundreds of references to existing filenames in various print and web design projects, as well as my Flickr account with 3000+ photos.
    Going back and updating all that stuff is not going to happen. But using a System Service to rename files after every import is also pretty tedious.
    Any solutions that meet the three criteria outlined above would be greatly appreciated.

    sempervirent,
    You're asking for some pretty advanced file naming. Most people aren't going to need that sort of function, so I doubt there will be a hook into Aperture to do such a thing. I suggest using a shell script or Applescript along with EXIFTool to rename files before you import them into Aperture. http://www.sno.phy.queensu.ca/~phil/exiftool/
    Retain the unique number that the image already has
    If you're not afraid of the command line, it's easy enough to use a tool like awk or maybe perl to parse that sequence number from a well-formatted string like the picture name
    Replace "DSC" with the camera model (D3X)
    You can use EXIFTool to extract the camera model from the EXIF dat ain the photos
    Add a digit prior to the four-digit string to indicate the true numeric sequence of the file.
    Good luck with this one. You'll have to do a filename search through all of your previous files to find out what 10,000 you're on. It's possible, but you'd have to do some specialized coding in AppleScript or shell script.
    nathan

  • Cannot rename files, folders and drives

    tried to GRAB the error message, and it's hanged when I tried to save the image.....
    There are problems on rename files, folders and drives, also have problem to delete things....
    what can I do.....!!!!

    Ok, finally i just reboot the machine and it is fine now.
    I guess there are some bugs related to the user permissions...
    Indeed, I encountered a few bugs and they were fixed by rebooting the machine.
    More details: I am using a early 2008 version mac pro with mountain lion and upgrade os to mavericks last nite.
    At first, it cannot connect to my wifi network, it kept asking me to enter password for my network but kept saying it s failed. After trial to fix it by a few methods which were failed, i gave up and reboot, and vala~ It worked again..
    Then i tried to rename my system drive as it was named "mountain lion", and i just want to rename it to "mavericks", error popped out, and i found that i cant rename folders or files, or put them in trash.... Again, it worked again after reboot!!!!
    Guys, for those who wannna upgrade to mavericks now, better wait for a few more weeks till some update come up n fix those issues....

  • Using anonymous to delete or rename files

    We have setup pure-ftpd on our Sles 10sp3 Oes2, we would like the anonymous user to be able to delete or rename files in the directory, but we cannot find any setting for this on the configuration file. The anonymous home directory is located on the NSS volume. So is it possible to configure the anonymous user to delete or rename files ?

    grpadmin,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • OSB is throwing java.io.IOException: Failed to rename file

    Hi,
    I'm getting the below error when I try to deploy the OSB code changes via OEPE:
    +<Error> <ConfigFwk> <D---00146903> <AdminServer> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <admin> <> <d71c3b335fa8baa2:39d72cb4:13951f6b38f:-8000-00000000000000bf> <1345702069308> <BEA-000000> <Failed to commit changes to file D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159\_binary\SessionData\singleton+
    java.io.IOException: Failed to rename file 'D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159\_binary\SessionData\singleton.gz.upd~' to 'D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159\_binary\SessionData\singleton'
    +     at com.bea.wli.config.transaction.TransactionalFileManager._renameFile(TransactionalFileManager.java:1660)+
    +     at com.bea.wli.config.transaction.TransactionalFileManager.commitFile(TransactionalFileManager.java:448)+
    +     at com.bea.wli.config.transaction.TransactionalFileManager.commit(TransactionalFileManager.java:320)+
    +     at com.bea.wli.config.transaction.TransactionalFileManager.commit(TransactionalFileManager.java:298)+
    +     at com.bea.wli.config.transaction.TransactionManager.commit(TransactionManager.java:1495)+
    +     at com.bea.wli.config.transaction.TransactionManager._endTransaction(TransactionManager.java:842)+
    +     at com.bea.wli.config.transaction.TransactionManager.endTransaction(TransactionManager.java:783)+
    +     at com.bea.wli.config.deployment.server.ServerDeploymentReceiver$2.run(ServerDeploymentReceiver.java:275)+
    +     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)+
    +     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)+
    +     at com.bea.wli.config.deployment.server.ServerDeploymentReceiver.commit(ServerDeploymentReceiver.java:260)+
    +     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)+
    +     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)+
    +     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)+
    +     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)+
    +     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)+
    +     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)+
    +>+
    OSB version: 11.1.1.5
    Please help me to resolve this issue.
    Thanks,
    Hari

    Hari,
    If it is multi user environment then ask all users to close their sessions using change center. If it is a single user environment then please rename the sessions folder (D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159) and restart all the servers. It should solve the problem.
    Also check whether the OS user who started the servers, has full access to the complete domain folder and permission to create directories/files into the domain folder and it's subfolders.
    Regards,
    Anuj

Maybe you are looking for