Rename file server

Hi experts,
Can anyone help me in this
I want to select one file from application server and rename it in same location. Or copy the same file with another name
guide me friends
Regards

I am not sure of re-name but you can get the contents of yout file in to internal table, write it back to a new file name and once successfully written delete the old file name which works as a rename.
Regards,
SaiRam

Similar Messages

  • Batch rename files on the server?

    Can someone explain how to batch rename files on the server ?
    I have 1000 rows each containing these fields
    id (unique key)
    productCode
    filename1
    filename2
    For every row I need to rename the following fields:
    Rename [filename1] to [productCode]_[id]_1
    Rename [filename2] to [productCode]_[id]_2
    also I need to rename the actual file on the server using the above scheme
    Can someone show me the way ? I'm a little rusty with ColdFusion

    So far I've got everything working apart from CFFILE which works only if it finds a corresponding jpeg file on the server. In other words it works perfectly until row 20 of the database because the filename contained in the field doesn't have a matching jpeg file on the server, so CFFILE fails like this...
    Attribute validation error for tag CFFILE.
    The value of the attribute source, which is currently C:\images\DSCN1293.JPG, is invalid.
    The error occurred in C:\Inetpub\wwwroot\link\htdocs\old_apps\psp\updater.cfm: line 63
    61 :                    action = "rename"
    62 :                    source = #my_source1#
    63 :                    destination = #my_destination1#>
    is there a way to carry on looping through the remaining rows and ignore the above fail ?

  • Source path too long :-Unable to delete mutiple number of folder and files from windows 2008 R2 file server

    Hi Team,
    we have a file server on windows server 2008 R2, I have copied some data from one server to another server using robocopy . I have checked access permission it seems okay no issues with access permission. but when i am trying to delete these folder i am
    getting below error message
    Error message:- 
    The source file name are larger than is supported by the file system.try moving to a location which has a shorter path name or try renaming to shortcut names before attempting this operations
    Regards,
    Triyambak 
    Regards, Triyambak

    I have tried everything , but nothing help , getting same error 
    could any one help me regarding this.
    Regards, Triyambak
    I have not looked at the other thread mentioned, but usually when this ends up happening, There are several ways to go about it.    One is to map a drive to the UNC path deeper into the folder structure.   
    So instead of C:\long\path\that\we\dont\want\files\in
    You map a drive.. lets say M:\   to     \\computer\c$\long\path\that\we\dont\want
    Now, when you open Explorer to M:\ you've elimintated the length of the path down to M:\files\in which is completely usable.
    The other way, is to shorten the names of everything.    For example...
    Folder structure like this:
    Root
    -----Folder1
    -----Folder2
    --------------Folder2A
    -----Folder3
    --------------Folder3A
    Rename all the folders to shorten up the path.     Rename Folder1 to '1' Rename Folder2 to '2', Rename folder3 to '3.    Then try to delete.  If it's still too long,  go one folder deeper.   Rename Folder2A to '1'  and
    Rename Folder3A to '1' and so on.     Basically keep renaming everything to a single digit character and eventually you'll shrink the path down to where you can shift-delete everything remaining.
    Hope that helps.    
    Brian / ChevyNovaLN

  • Rename file name & format using ftp sender

    Hi all,
    This is regarding the renaming of file at sender file(FTP) communication channel and placeing the same file in the same folder.
    At FTP server at sender side (i.e.clients place) is in .txt format.But now .txt file has to rename and change into .sav foramt with below required name convention of file.
    client format is  :  SAP_Order.txt (Pervious file name).
    We need to change the file in to "SAP_Order_yyyymmddThhmmss.sav" format..
    How can i achieve this requirement?
    Can please suggests me solutions ASAP.
    Best Regards,
    satya,

    Hi,
       if your requirement is to pick the  existing file in the FTP folder...and send as idoc to the target and place the renamed file to FTP folder...
    then its simple...
    use two receivers instead of one , one for point to target and other for sender itself... (second receiver  is for  changing  the file name format....)
    Hope the above understanding is correct...if not provide more details of your requirement...
    HTH
    Rajesh

  • FM to rename   files in ABAP

    Hi..I am pretty new to the world of ABAP.
    I have the following task.
    I need to right a function module that will be responsible for renaming files on the R/3 system (to a certain predefined format). Basically, I am thinking that FM will import/accept an old file name (incl path) as a parameter, and then FM will take care of actually renaming the file and returning the name of the new filename.
    Since I am very new to all the ABAP, can any of you give me some pointers, or maybe some sample code if anybody done something similar?
    All the help is appreciated.
    thank you

    Are you talking about files on the application server.  If so, you will need to copy them into the new name and delete the old one.  Here is a sample program.
    report zrich_0001.
    parameters: d1 type localfile default '/usr/sap/TST/SYS/Data1.txt',
                d2 type localfile default '/usr/sap/TST/SYS/Data2.txt'.
    data: begin of itab occurs 0,
          rec(20) type c,
          end of itab.
    data: wa(20) type c.
    start-of-selection.
    * open and read file 1 into an internal table
      open dataset d1 for input in text mode.
      if sy-subrc = 0.
        do.
          read dataset d1 into wa.
          if sy-subrc <> 0.
            exit.
          endif.
          itab-rec = wa.
          append itab.
        enddo.
      endif.
      close dataset d1.
    * Open file 2 and copy the contents to this file
      open dataset d2 for output in text mode.
      loop at itab.
        transfer itab to d2.
      endloop.
      close dataset d2.
    * Delete file 1
      delete dataset d1.
    Welcome to SDN!  Please remember to award points for any helpful answers that you might recieve.  Also, when your question has been answered completly, be sure to mark as "Solved".  Thanks.
    Regards,
    Rich Heilman

  • Renaming files with invalid characters in their names on NTFS partitions, introduced by operating systems other than Windows

    Essentially, Linux created some files with colons (:) in the name on a NTFS partition where I have Windows installed. I have since uninstalled Linux, but now I can only view these files in Windows Explorer. I can't open them, I can't even rename them to
    correct the problem. It's as if they don't exist, because of the invalid search paths.
    If I try to rename them in Windows Explorer I get following message.
    The file name you specified is no valid or too long.
    Specify a different file name.
    Well isnt' that something?... isn't that nice? Windows is able to display these files, but it doesn't allow me to open them and it certainly doesn't like me to rename them. So why is it whining about it then, when I'm trying to help? It says "try a different
    file name". Yeah, right! Like I haven't tried that one already! It doesn't matter what file name I input it will never accept it.
    So what am I supposed to do now? Ditch Windows and go back to Linux? Surely, Microsoft doesn't like the sound of that. Sure, I could reinstall Linux or run a Linux live system to correct the problem. But what good is Windows then? I might as well switch to
    Linux altogether.
    After doing some research I now know by fact that it's (kind of) possible to rename files from UNIX and UNIX-like operating systems to those compliant with Windows by using something called file name character translation. To some level this is essential and
    necessary for Windows interoperability with other operating systems (Windows is not the only operating system in the world). But this seems to be very complicated and I can't get my head around it. My brain is in overload. I don't know where to start.
    Once there was a...
    There's the Windows Services for UNIX (SFU) 1.0, 2.0, 3.0, 3.5. The first two versions were based on MKS Toolkit, a package licensed by Microsoft from MKS Inc. The later versions were based on the similar Interix product, after Microsoft purchased the company
    that made it.
    Then there's the new Subsystem for UNIX-based Applications (SUA). These are services for UNIX components. They are supposed to have Client for NFS v3 included as well. But the server components from the SFU line is missing (e.g. Server for NFS). These are included
    in Server editions of Windows.
    Then there's the Microsoft Knowledge Base article
    289627: "How to Enable File Name Character Translation". This article seems to describe exactly my situation.
    Windows and UNIX operating systems have restrictions on valid characters that can be used in a file name. The list of illegal characters for each operating system, however, is different. For example, a UNIX file name can use a colon (:), but a Windows
    file name cannot use a colon (:). If a UNIX user attempts to create a file with a Windows illegal character on a Windows Services for UNIX network file system (NFS) share, the attempt is unsuccessful and the UNIX client computer receives an input or output
    error.
    It goes further than that. At first glance, this KB article also seems to offer a solution to this exact problem, with examples as shown below.
    For example, the following maps the UNIX colon (:) to a Windows dash (-):
    0x3a : 0x2d ; replace client : with - on server
    I checked these values in charmap.exe and they are correct. Except for 2D not being a "dash", it's rather a hyphen ("hyphen minus" to be exact), but these two have pretty much the same appearance and they get interchanged a lot, I'm sure
    they are used to it by now. (Yes, the characters! They don't mind.)
    Then there's this registry key.
    HKEY_LOCAL_MACHINE\Software\Microsoft\Server For NFS\CurrentVersion\Mapping
    Well, of course, I don't have Server for NFS. So this is a dead end. Well, actually, it was a dead end from the beginning...
    1. First of all, I'm not working with a network share on a NAS or SAN storage. The files are on the local disk drive where Windows is installed, so that's a DAS for you.
    2. I don't have SFU! Well obviously, I'm on Windows Vista! So that means SUA!
    3. SUA are service components only. No server components. Can you guess what that means? Yeah... no "Server for NFS" since it's a server component.
    4. Windows Vista is a client side operating system! Server for NFS is only offered for use with Windows Server systems.
    5. Back to square one!
    So there you have it. They all lived happy for the rest of their lives...
    I'm stuck here. Can someone tell me what to do? I mean beyond the obvious option to use Linux to fixa a Windows problem? The NTFS file system itself supports colons in file names. It's Windows that doesn't, and so by default it proclaims it invalid character.
    Surely, even a Windows client operating system like Windows Vista should be able to allow the user to at least rename files with invalid characters to something more sensible (from the system point of view) and valid, if not being able to open them as they
    are. Just add some crazy voodoo code to it and it will work. If you can make it possible on Windows Server with UNIX user-mode subsystem on NT kernel, then what's stopping you from giving the Windows client system the same benefit?
    So what now? Purchase a Windows Server 2012 R2 license, copy my invalid files to a NAS share with NFS on a UNIX or Linux system, and have a go at the Windows registry and Server for NFS? Yeah... you're right, it's probably a bit over the top...
    On a second thought... I might as well install Linux again. There are countless situations where Linux has helped me solve problems related to, and more often than not caused by Windows.

    Essentially, Linux created some files with colons (:) in the name on a NTFS partition where I have Windows installed. I have since uninstalled Linux, but now I can only view these files in Windows Explorer. I can't open them, I can't even rename them to
    correct the problem. It's as if they don't exist, because of the invalid search paths.
    If I try to rename them in Windows Explorer I get following message.
    The file name you specified is no valid or too long.
    Specify a different file name.
    Well isnt' that something?... isn't that nice? Windows is able to display these files, but it doesn't allow me to open them and it certainly doesn't like me to rename them. So why is it whining about it then, when I'm trying to help? It says "try a different
    file name". Yeah, right! Like I haven't tried that one already! It doesn't matter what file name I input it will never accept it.
    So what am I supposed to do now? Ditch Windows and go back to Linux? Surely, Microsoft doesn't like the sound of that. Sure, I could reinstall Linux or run a Linux live system to correct the problem. But what good is Windows then? I might as well switch to
    Linux altogether.
    After doing some research I now know by fact that it's (kind of) possible to rename files from UNIX and UNIX-like operating systems to those compliant with Windows by using something called file name character translation. To some level this is essential and
    necessary for Windows interoperability with other operating systems (Windows is not the only operating system in the world). But this seems to be very complicated and I can't get my head around it. My brain is in overload. I don't know where to start.
    Once there was a...
    There's the Windows Services for UNIX (SFU) 1.0, 2.0, 3.0, 3.5. The first two versions were based on MKS Toolkit, a package licensed by Microsoft from MKS Inc. The later versions were based on the similar Interix product, after Microsoft purchased the company
    that made it.
    Then there's the new Subsystem for UNIX-based Applications (SUA). These are services for UNIX components. They are supposed to have Client for NFS v3 included as well. But the server components from the SFU line is missing (e.g. Server for NFS). These are included
    in Server editions of Windows.
    Then there's the Microsoft Knowledge Base article
    289627: "How to Enable File Name Character Translation". This article seems to describe exactly my situation.
    Windows and UNIX operating systems have restrictions on valid characters that can be used in a file name. The list of illegal characters for each operating system, however, is different. For example, a UNIX file name can use a colon (:), but a Windows
    file name cannot use a colon (:). If a UNIX user attempts to create a file with a Windows illegal character on a Windows Services for UNIX network file system (NFS) share, the attempt is unsuccessful and the UNIX client computer receives an input or output
    error.
    It goes further than that. At first glance, this KB article also seems to offer a solution to this exact problem, with examples as shown below.
    For example, the following maps the UNIX colon (:) to a Windows dash (-):
    0x3a : 0x2d ; replace client : with - on server
    I checked these values in charmap.exe and they are correct. Except for 2D not being a "dash", it's rather a hyphen ("hyphen minus" to be exact), but these two have pretty much the same appearance and they get interchanged a lot, I'm sure
    they are used to it by now. (Yes, the characters! They don't mind.)
    Then there's this registry key.
    HKEY_LOCAL_MACHINE\Software\Microsoft\Server For NFS\CurrentVersion\Mapping
    Well, of course, I don't have Server for NFS. So this is a dead end. Well, actually, it was a dead end from the beginning...
    1. First of all, I'm not working with a network share on a NAS or SAN storage. The files are on the local disk drive where Windows is installed, so that's a DAS for you.
    2. I don't have SFU! Well obviously, I'm on Windows Vista! So that means SUA!
    3. SUA are service components only. No server components. Can you guess what that means? Yeah... no "Server for NFS" since it's a server component.
    4. Windows Vista is a client side operating system! Server for NFS is only offered for use with Windows Server systems.
    5. Back to square one!
    So there you have it. They all lived happy for the rest of their lives...
    I'm stuck here. Can someone tell me what to do? I mean beyond the obvious option to use Linux to fixa a Windows problem? The NTFS file system itself supports colons in file names. It's Windows that doesn't, and so by default it proclaims it invalid character.
    Surely, even a Windows client operating system like Windows Vista should be able to allow the user to at least rename files with invalid characters to something more sensible (from the system point of view) and valid, if not being able to open them as they
    are. Just add some crazy voodoo code to it and it will work. If you can make it possible on Windows Server with UNIX user-mode subsystem on NT kernel, then what's stopping you from giving the Windows client system the same benefit?
    So what now? Purchase a Windows Server 2012 R2 license, copy my invalid files to a NAS share with NFS on a UNIX or Linux system, and have a go at the Windows registry and Server for NFS? Yeah... you're right, it's probably a bit over the top...
    On a second thought... I might as well install Linux again. There are countless situations where Linux has helped me solve problems related to, and more often than not caused by Windows.

  • Locks file on a file server

    Under Captivate 3 (as part of the full Tech. Comm. Suite),
    I'm authoring Captivate presentations on a Windows XP PC, and
    storing archive copies of the resultant .cp and stand-alone .exe
    files on a file server. These server copies are never opened/edited
    directly by the application - all editing is done against the local
    PC files, and regular Windows operations are used to copy the files
    off to the server.
    About 95% of the time, any attempt to delete, move to another
    folder, or rename a server side .cp file fails, when attempted from
    a PC with Captivate installed. This happens after a long delay
    (10-20 seconds). The message is that the file is locked by another
    person or program, please close it and try again. Common tools that
    attempt to "punch-through" such locks report the file as "not
    locked", but still fail. A Captivate authored .exe (sporting the CP
    icon) also induces the same delay, but ultimately can be touched.
    Non-CP files in the same directory show no delay whatsoever. A
    non-Captivate PC can freely alter these server files, without
    experiencing locks nor delays. Cold-booting the workstation and
    attempting the file server operations before starting any Captivate
    sessions does not alleviate the problem.
    Any ideas what gives? Are there Adobe background processes
    that are holding locks, even when the foreground application is
    shut down - such as some sort of Adobe file indexer?

    This questions or other questions on similar line shave been asked before.
    Instead of repeating something too overlay, I would simply point you to http://java.sun.com/j2se/1.3/docs/api/java/io/Writer.html#lock

  • Replace a 2003 (not R2) File Server with a 2012R2 files server and preferably keep the same machine name and IP when finished

    I am wanting to replace a 2003 (not R2) File Server with a 2012R2 file server and preferably keep the same machine name and IP when finished.  For the moment I just need some "high level" guidance, little details can be worked out once I know
    which direction I will go.  I was considering that DFS might be a way to help get through the process although when finished the 2012R2 Files server will be by itself with no other file server planned at this time.  DFS can stay installed for maybe
    future purposes but clearly I wouldn't need the DFS Replication with only one machine.
    Here's a few details of the environment....
    1.  DC's are 2012R2 but it is still 2003 DFL because the old 2003 DCs are still present.  But likely they will be gone and the DFL elevated before I start on the File Server project
    2. Nearly all machines in the facility have a shortcut on the "All Users" Desktop that points to the existing old File Server.  Editing or replacing that shortcut would be a major pain,...hence why I want to keep the same machine name at least,
    and maybe the same IP if not too much trouble.  This way the existing shortcut would continue to work with the new 2012R2 File Server.  The UNC path represented in that shortcut is also configured into one or more of our major business applications,
    futher emphasizing the need to keep the UNC path the same throughout the process.
    3. The facility runs 24/7/365 but is "light" on weekends.  The political environment is such that there is little to no tolerance for any down time at all.
    4. Would DFS (based from the 2012R2 machine) be a good tool to get where I need to go?
    Thanks for any suggestions.
    Phillip Windell

    Hi Sharon,
    I've done some more reading and have a few new ideas to run past you....
    Yes regular DFS wouldn't help and the Namespace would still be different than how it was with just the old server. However I was thinking DFS Replication could replace the purpose of RoboCopy and it would keep the two locations "in sync" until I was ready
    to flip over to the new server.  DFS Rep can exist independently of a DFS Namespace, so a Namespace is not even needed. It needs a minimum of 2003R2 for the "later & better" DFS Rep but I believe 2003 can do an "in place" upgrade to 2003R2, so I would upgrade
    the old server to 2003R2 first.  As long as the DFS Rep on 2012R2 and 2003R2 will properly interact I think that will work.
    Thanks for the reg info on the Shares.  I'm debating if editing that would reg file would really be much better than manually creating the Shares on the new server while the DFS Replication was doing its job.  I'll probably export that Key as a
    safety move whether I use it or not.
    Once the DFS Rep is fully in sync and the Shares are in place on the new server, I figure I would then:
    1. Remove the DFS Replication Object (optionally remove DFS Services completely)
    2. Rename the old File Server to something else and set it to DHCP
    3. Rename the new File Server to the name I want to use and give it the IP the old server had.
    How does that sound?
    Phillip Windell

  • SID Showing instead of friendly name after renaming the server

    I had to rename a windows 2012 R2 server and after I rename it, Sever is showing SID instead of user friendly name.
    Even when I try to add new domain group or user in any resourse of this server, the friendly name disappear, soon after I hit apply button.
    So far I have done the following
    disjoin/rejoin - same result
    disjoin >delete AD account > Rejoin - same result
    I confirm that I have see the new server name in AD. DNS is OK too. Could find anything (i think) related to this problem.
    I can see the following errors
    1. The server {9BA05972-F6A8-11CF-A442-00A0C90A8F39} did not register with DCOM within the required timeout. EVENT ID 10010
    2. The processing of Group Policy failed. Windows could not determine if
    the user and computer accounts are in the same forest. Ensure the user
    domain name matches the name of a trusted domain that resides in the
    same forest as the computer account. . Event ID 1110
    3. Netloon server could not add the autZ RPC interface. The service
    was terminated. the following error occured. " Not enough sesources are
    available to compete this operation  Event id 5820
    4. The UAC file Virtulatization service failed to start due to the
    following error: This driver has been blocked from loading.Event ID 7000
    I have not deleted the computer account in the second time. Then
    rejoin but this time i didn't get the message but the issue with SID
    showing instead  of friendly name is still there. These are related , i
    can see
    I can see the server in the domain and DNS also updated.
    When I run GPReuslt, it shows
    Data collected on: 20/03/2014 3:17:09 PM
    Summary
    During last computer policy refresh on
    20/03/2014 3:00:29 PM
    <v:group alt="Error" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:oval
    class="vmlimage" coordsize="21600,21600" fillcolor="red"
    strokecolor="red"
    style="width:100px;height:100px;"></v:oval><v:line
    class="vmlimage" from="25,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="75,75"></v:line><v:line
    class="vmlimage" from="75,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="25,75"></v:line></v:group>
    1
    Errors Detected
    <v:group alt="Warning" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:shape
    class="vmlimage" coordsize="100,100" fillcolor="yellow"
    path=" m50,0 l0,99,99,99 xe" strokecolor="yellow"
    style="width:100px;height:100px;"><v:path></v:path></v:shape><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:35px;"></v:rect><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:5px;"></v:rect></v:group>
    A fast link was detected More information...
    <v:group alt="Warning" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:shape
    class="vmlimage" coordsize="100,100" fillcolor="yellow"
    path=" m50,0 l0,99,99,99 xe" strokecolor="yellow"
    style="width:100px;height:100px;"><v:path></v:path></v:shape><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:35px;"></v:rect><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:5px;"></v:rect></v:group>
    The following GPOs have special alerts
    GPO
    Name
    Alert
    Default Policy
    AD / SYSVOL Version
    Mismatch
    During last user policy refresh on
    20/03/2014 3:00:29 PM
    <v:group alt="Error" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:oval
    class="vmlimage" coordsize="21600,21600" fillcolor="red"
    strokecolor="red"
    style="width:100px;height:100px;"></v:oval><v:line
    class="vmlimage" from="25,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="75,75"></v:line><v:line
    class="vmlimage" from="75,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="25,75"></v:line></v:group>
    1
    Errors Detected
    <v:group alt="Warning" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:shape
    class="vmlimage" coordsize="100,100" fillcolor="yellow"
    path=" m50,0 l0,99,99,99 xe" strokecolor="yellow"
    style="width:100px;height:100px;"><v:path></v:path></v:shape><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:35px;"></v:rect><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:5px;"></v:rect></v:group>
    A fast link was detected More information...
    Please help
    I feel like, something is blocking the user-friendly name to display in that server. I could be wrong.
    I have also noticed that Netlogon service is not running. Try to run, it gives error Error 1721: Not enough resources are available to complete this operation.
    please help.

    Hi,
    Would you please tell us that are all user names displayed as SIDs, or only some of them after you renamed the server?
    Here are some related links below I suggest you refer to:
    Event ID 1110 — Group Policy Preprocessing (Active Directory)
    http://technet.microsoft.com/en-us/library/cc727342(v=WS.10).aspx
    Error Message:
    http://technet.microsoft.com/en-us/library/cc940521.aspx
    "AD / SYSVOL version mismatch" message is displayed unexpectedly in the Group Policy Results report in Windows
    http://support.microsoft.com/kb/2866345
    Best Regards,
    Amy Wang

  • Please syntax for me :)  Re: Rename files with a given string

    From the post http://forum.java.sun.com/thread.jspa?forumID=54&threadID=5118509
    Was wondering if someone could explain how the red characters work and what it does. Thanks!
            String newFileName = destFiles.getName().replaceFirst("[^.]*", rename);
            File newFile = new File(destFiles, newFileName);
            destFiles.renameTo(newFile);

    It would serve you better to look at the API documentation.
    getName() returns a String, right? So it is invoking String.replaceFirst with those arguments. Do you know where the API documentation is?
    http://java.sun.com/j2se/1.5.0/docs/api/index.html
    (That's for version 1.5 - you can find other docs for other versions).

  • How to rename files in OS X SL, from 2 similar sets of picts?

    Hello,
    I have 2 sets to files that are different but carry the same file name, e.g. "PICT_001...PICT050" twice.
    In Finder, I'm looking for a way to select all pictures from one set and rename all at once, e.g. "PICT_051...PICT100" at once.
    Please help.
    Thanks all

    David
    I have to agree with Jeff and the other Poster.
    IMHO you really do not want to import anything from your 10.2 Server. Configure and Deploy 10.6 Server from scratch. I've seen problems and unpredictable results when importing from 10.4 Server let alone an earlier version.
    You could use "ditto" from the command line if you wish to copy data shares from 10.2 to 10.6 Server, but I don't think you'll 'gain' anything by doing this. 10.6 Server uses ACLs so you'll be using that Permissions Model instead of POSIX. ACLs supercede POSIX.
    Beyond this and an important point to make is the reliance OSX Server has on DNS. This really can't be stressed enough. If all you want is a simple AFP File Server and nothing else you should still configure DNS simply to provide the Server with the stability it needs. If this is going to be the only server on the network configure the DNS Service. If there is an existing Server already running DNS Services create appropriate records. Avoid the use of .local if possible and if you have a real world domain use that instead.
    If you know nothing of DNS then try to learn as much as you can because you will need it even though it may not seem so to begin with. No-one assumes you know anything about it anyway although if you've been using email and internet for some time you must at least be aware of it? On the surface it may seem complicated but truly at its heart it is extremely simple. Finally keep things simple and you should be OK?
    My 2p.
    Tony

  • Need to rename files parsing date formats in the filename [SOLVED]

    Godaddy changed the naming scheme of their server logs again.  I need some perl or something magic that will convert format A to format B.  Doing this is bash is going to be painful so I'm hoping some of your perl or python ninjas out there could help me.
    format A:  ex20140425000001.log
    format B: Wed, May 21, 2014.log
    So for the example above, that date needs to be converted to this name: ex20140521000001.log
    Thanks in advance!
    EDIT: nevermind... forgot about date.
    #!/bin/bash
    for i in *.log; do
    fixeddate="$(echo $i | sed -e 's/,//g' -e 's/^....//' -e 's/.log//')"
    useitdate="$(date -d "$fixeddate" +%Y%m%d%H%M%S)"
    newname="ex$useitdate.log"
    mv "$i" "$newname"
    done
    Last edited by graysky (2014-06-07 09:41:59)

    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

  • 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

  • Dreamweaver CS6 in a File Server

    Hello.
    We've migrated to a new file server and my website local files are in there. Since then, my Dreamweaver crashes or is very slow (i mean, 5 seconds to rename a file). The new file server it's a CFIS. I want to know if there's any issue about the compatibility between DW and these kind of File Servers.
    I posted it on Dreamweaver CC Extensions, becauses it's the more similar topic that i found.
    I hope you can help me.
    Thanks.
    Sergio

    Please check if any of the links below help you.
    http://helpx.adobe.com/dreamweaver/kb/troubleshoot-crash-dreamweaver-cc.html
    http://helpx.adobe.com/dreamweaver/kb/troubleshooting-dreamweaver-windows.html
    http://forums.adobe.com/thread/417116

  • Netbeans is renaming files that it gets from the CVS (!)

    Hi;
    We have a file naming convention - looks something like this:
    TaskDefinition_UM-DoStuff.xml
    which is the file that contains the TD object:
    UM - Do Stuff
    I'm an Eclipse user, but one of our developers is using Netbeans. It appears that, when she brings up objects from CVS, Netbeans is renaming these objects!!!
    In this case the object would be renamed to "UM - Do Stuff.xml"
    Does anybody know if there is a setting to turn this off?
    Imagine an IDE renaming files from CVS. Such madness!
    -Bill

    Ah, not so scary after all.
    Netbeans will name a file downloaded from the server with the name of the object. We were inadvertantly downloading from the server when we thought we were getting files from the CVS.
    -Bill

Maybe you are looking for