Sorting string like windows file name sorting

Hi everybody, I have a simple question.
I was trying to sort some file name in java
Let say we have a list of string which are :
1.txt
a.txt
2.txt
11.txt
a(1).txt
a(11).txt
a(2).txt
If i convert those strings as file names, and sort it by file name in the windows explorer the result is
1.txt
2.txt
11.txt
a(1).txt
a(2).txt
a(11).txt
a.txt
But if i enter those strings into an Arraylist and use Arrays.sort or Collections.sort, the result is
1.txt
11.txt
2.txt
a(1).txt
a(11).txt
a(2).txt
a.txt
Is there a way to achieve the string sort similar to windows rather than aplhabetically like the default sort of Arrays/Collection.
I have done some searching but only found problem regarding to different language character sorting which can be achieved using Collator but this was not my case. Has anybody encounter this issue ?
Any help is greatly appreciated
regards
Hendra Effendi

ballistic_realm wrote:
Let say we have a list of string which are :
1.txt
a.txt
2.txt
11.txt
a(1).txt
a(11).txt
a(2).txt
If i convert those strings as file names, and sort it by file name in the windows explorer the result is
1.txt
2.txt
11.txt
a(1).txt
a(2).txt
a(11).txt
a.txt
...Not sure, but wouldn't Windows sort it like:
1.txt
2.txt
11.txt
a.txt
a(1).txt
a(2).txt
a(11).txt
If so, the try something like this (UNTESTED!):
class WindowsFileNamesComparator implements Comparator<String> {
    public int compare(String a, String b) {
        String[] tokensA = tokenize(withoutExtension(a));
        String[] tokensB = tokenize(withoutExtension(b));
        int max = Math.min(tokensA.length, tokensB.length);
        for(int i = 0; i < max; i++) {
            if(tokensA.equalsIgnoreCase(tokensB[i]))
continue;
else if(tokensA[i].matches("\\d+") && tokensB[i].matches("\\D+"))
return -1;
else if(tokensA[i].matches("\\D+") && tokensB[i].matches("\\d+"))
return 1;
else if(tokensA[i].matches("\\d+") && tokensB[i].matches("\\d+"))
return Integer.valueOf(tokensA[i])-Integer.valueOf(tokensB[i]);
else
return tokensA[i].compareTo(tokensB[i]);
return tokensA.length - tokensB.length;
private String[] tokenize(String s) {
List<String> tokens = new ArrayList<String>();
Matcher m = Pattern.compile("\\d+|\\D+").matcher(s);
while(m.find()) {
tokens.add(m.group());
return tokens.toArray(new String[]{});
private String withoutExtension(String s) {
int lastDot = s.lastIndexOf('.');
return lastDot < 0 ? s : s.substring(0, lastDot);

Similar Messages

  • Extracting string from a file name

    Hello,
    I have a legacy (read: I didn't build it) SharePoint list  that includes some validation when uploading files that's giving me some trouble.
    Basically, our users are required to add files to a list in a certain filename format and based on the naming convention are approved/rejected and routed to the appropriate location.
    One of the validations looks at a section of the file name and compares it to a folder name in the library.
    For example, the file name format is XX_AAA_999_2014_05.xlsx and that matches on the folder name of /submissions/2014_05
    Currently the rule says look at the last 7 characters of the folder and the 7 characters starting at position 12 of the filename and make sure they match.
    The problem is the 999 in the example above is a sequential identifier to the project a file is associated with... e.g. they range from project 000 to project 999. We've now hit project 1000 so file being added for project 1000 (and beyond) fails because
    the starting position has shifted one spot. (Note: we have active 3 digit projects so I cannot simply change that to be position 13... not to mention what that does to my history).
    So, my task is to come up with something that can accomodate 3 or 4 digit numbers.
    I'm trying to stick as closely to the original setup so I don't mess up the history so I'm looking at other methods of getting to the same data in the string.  Another problem is that the file names include the extension and the extension can be 3 (pdf)
    or 4 (xlsx) characters long.
    I've tried this:  =LEFT([Source File Name],SEARCH(".",[Source File Name])-1)
    but that brings back everything in front of the period and I need just the 7 preceeding characters.  Is there a way to limit the number of chars a LEFT() function returns?
    In a nutshell, the 4 variations of file names are as follows of which I need to extract the
    bolded section.:
    ZZ_AAA_999_2014_05.xls
    ZZ_AAA_999_2014_05.xlsx
    ZZ_AAA_1000_2014_05.xls
    ZZ_AAA_1000_2014_05.xlsx
    Thanks!
    Kevin

    Hi,
    According to your description, you might want to retrieve the string “2014_05” from the file name.
    I would suggest you create a SharePoint Designer workflow and implement your logic of handling the filename.
    In SharePoint Designer 2010, there are already some useful utility workflow actions which can enable users to deal with the various requirements come from the business scenarios.
    For the string handling, you can consider to use the
    Utility Actions:
    http://msdn.microsoft.com/en-us/library/office/jj164026(v=office.15).aspx
    Another two links about creating SharePoint Designer workflow for your reference:
    http://office.microsoft.com/en-001/sharepoint-designer-help/introduction-to-designing-and-customizing-workflows-HA101859249.aspx
    http://www.codeproject.com/Tips/415107/Create-a-Workflow-using-SharePoint-Designer
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • Mac & windows file name sizes

    I am using Dreamweaver 8 on the Mac for most all of my
    commercial web development. I have a G5 connected to a local
    network where I also run a Windows 2000 box as a web server to test
    with. in a new project which I took over from another company they
    have page names such as
    new-england-lodging-2-doubles-1-twin.html
    I downloaded the site and can see it all hunky-dorey on the
    Mac. however when I try & upload these files to my testing
    server, they won't go. I get the following error message:
    new-england-lodging-2-doubles-1-twin.html - error occurred -
    An error occurred - cannot put
    new-england-lodging-2-doubles-1-twin.html. The specified path does
    not exist.
    of course the path DOES in fact exist. in addition I can
    create a file with this name on the PC side with no difficulty.
    however when I do so the file name is displayed on the Mac side
    thus:
    NEW-EN~2.HTM
    obviously this is not at all useful!
    any thoughts or workarounds for this? use of these file names
    is a requirement on this site for SEO reasons. I would prefer not
    to have to do the development on the PC for a variety of reasons.
    thanks

    > of course the path DOES in fact exist. in addition I can
    create a file
    > with
    > this name on the PC side with no difficulty. however
    when I do so the file
    > name
    > is displayed on the Mac side thus:
    >
    > NEW-EN~2.HTM
    That typically occures when reading a windows formatted disk.
    How did you
    download the images to the Mac? Did you just grab then from
    the FTP server?
    If so, the file names SHOULD have come across OK.
    -Darrel

  • How do I customizing the download pop up window file name?

    I have a site that streams a PDF. The file name is not included in the URL. When I set my options to Save As for Adobe I am presented with the Download pop up box, but there is no extension in the box so when I double click the item it asks what file to open it with. So my question is, is it possible to be able to customize the name of the file being saved rather then letting the browser determine the name based on the URL?

    A good solution, but I went one better -  I got rid of the HP Printer and bough an Epson.
    The problem no longer exists.

  • Creating a tree structure like Windows file explorer using Jdev

    Hi All,
    Is it possible to develop a tree structure like windows in JDEV and then same page I want to move to oracle apps.
    This tree I am creating for Showing Employee information. Like Parents & childs under it. i.e. Managers and employee reporting to managers.
    Please let me know if it is possible, if yes how , what is method of doing this.
    Thanks
    Ganesh Mane

    Yes. This possible with ADF Faces RC, which provides an af:tree component. Have a look at the Fusion Order Demo, which uses the tree to implement a similar usecase to the one you describe.
    http://www.oracle.com/technology/products/jdev/samples/fod/index.html
    Regards,
    RiC

  • Help with today's date - 2 days as a string for a file name

    This will be an Expression/Connection String for a Flat File Connection Manager.
    Need it in this format COMPANY20150402.txt except the formula needs to incorporate the DATEADD("D", -2, Getdate())
    "COMPANY" + (DT_STR,4,1252) DatePart("yyyy",getdate()) +
    Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2) +
    Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2)  +".txt"
    Where do I add the DATEADD part? and be syntactically correct?
    TIA
    Harry

    You do get COMPANY20150402.txt outputted from your expression
    just keep adding DATEADD("DAY",-2,.... to each getdate()
    like
    "COMPANY" + (DT_STR,4,1252) DatePart("yyyy",DATEADD("DAY",-2,getdate())) +
    Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2) +
    Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2)  +".txt"
    Arthur
    MyBlog
    Twitter

  • Find out if string is valid file name?

    Is there a platform-independent method in the standard API to determine if a string contains only valid filename characters, and if not, convert it?

    How about something like
    File f = new File(String pathname)
    then
    if(f.isDirectory())
    And
    if(f.isFile())
    And
    if(f.exists())This would only work for existing files. You could try File.exists() as a first effort, and if this returned false, try creating a new directory with File.mkdirs(). Of course, this only works for local code (i.e. it wouldn't work in an Applet), and wouldn't work (for example) if the path contained a drive letter that didn't exist on your machine.
    RObin

  • "Save as..." window - file name bug

    http://forums.adobe.com/message/3030230
    I have the same problem.
    I'm using Windows XP SP3 Professional (x86). Audition version 3.0, build 7283.0. My copy is registered.
    Some additional notes:
    File format doesn't matter; I've tried WAV, MP3 and FLAC.
    I have tried reinstalling Audition. I uninstalled it via a program called Revo Uninstaller. I've searched through the registry after uninstallation, and could not find any leftover keys or values.
    I'm not using any visual themes. The Windows service "Themes" is disabled.
    Any idea how to solve this?

    You've provided good information in describing your situation, thanks.  There's more likelihood that this is a Windows or graphics driver problem than with Audition.  Many of us run it on XP sp3 with great success.  I would recommend the following:
    --make sure all Windows updates are current
    --check your graphics card for an updated driver
    --less likely to address this specific problem, but it can't hurt, is to install the Audition 3.01 update available here: http://www.adobe.com/support/downloads/product.jsp?product=92&platform=Windows. This update is highly recommended anyway.
    Should you have success with any of these options, please report which was helpful!

  • Importing file names

    I want to create an inventory spreadsheet of my artwork jpeg files.
    How do I import into Numbers just the file names of a folder full of jpg files?
    I would like the file name to be one column and the extension another column because I also have .mov and .pdf files and would like to sort them later.
    Thanks

    Here is a script doing the entire trick.
    --[SCRIPT insertFolderContents]
    Enregistrer le script en tant que Script : insertFolderContents.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner la cellule où devra être inséré le premier nom de fichier.
    menu Scripts > Numbers > insertFolderContents
    Naviguer jusqu'au dossier à examiner.
    Les noms de fichiers et leurs éventuelles extensions sont collées dans la table.
    Rien n'est collé si le dossier est vide.
    Il est également possible d'enregistrer le script sous forme de Progiciel (Application sous 10.6).
    Dans ce cas il peut être activé par un double clic ou par glisser-déposé d'un dossier sur son icône.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Save the script as a Script: insertFolderContents.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select the cell where filenames must be inserted.
    menu Scripts > Numbers > insertFolderContents
    Navigate to the folder to scan.
    The file names and the extension names (if they exist) are pasted in the table.
    If the folder is empty, nothing is pasted.
    Alternatively, the script may be saved as an Application package (Application under 10.6).
    In this case, it may be triggered by double click on by drag & drop of a folder on its icon.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/04/18
    --=====
    on run
    set dossier to choose folder
    --tell application "System Events" to set dossier to choose folder
    dans un bloc System Events pour avoir un titre de dialogue "localisé"
    • in a System Events block to get a localized dialog title. *)
    my main({dossier})
    end run
    --=====
    on open sel
    my main(sel)
    end open
    --=====
    on main(sel)
    my activateGUIscripting()
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    set dossier to quoted form of POSIX path of (item 1 of sel as text)
    set lesNoms to paragraphs of (do shell script "ls " & dossier)
    if lesNoms is not {} then
    repeat with i from 1 to count of lesNoms
    set n to item i of lesNoms
    if n contains "." then
    set item i of lesNoms to n & tab & last item of my decoupe(n, ".")
    end if
    end repeat
    set the clipboard to my recolle(lesNoms, return)
    my shortcut("Numbers", "v", "cas")
    end if
    end main
    --=====
    set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
    end if
    return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
    apply to named row or named column !
    on decipher(n, d, s, t)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local t
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to ""
    return t
    end recolle
    --=====
    on activateGUIscripting()
    tell application "System Events"
    if not (UI elements enabled) then set (UI elements enabled) to true (* to be sure than GUI scripting will be active *)
    end tell
    end activateGUIscripting
    --=====
    ==== Uses GUIscripting ====
    This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
    It may be used to 'type' keyboard shortcuts if the third parameter describe the required modifier keys.
    on shortcut(a, t, d)
    local k
    tell application a to activate
    tell application "System Events" to tell application process a
    set frontmost to true
    try
    t * 1
    if d is "" then
    key code t
    else if d is "c" then
    key code t using {command down}
    else if d is "a" then
    key code t using {option down}
    else if d is "k" then
    key code t using {control down}
    else if d is "s" then
    key code t using {shift down}
    else if d is in {"ac", "ca"} then
    key code t using {command down, option down}
    else if d is in {"as", "sa"} then
    key code t using {shift down, option down}
    else if d is in {"sc", "cs"} then
    key code t using {command down, shift down}
    else if d is in {"kc", "ck"} then
    key code t using {command down, control down}
    else if d is in {"ks", "sk"} then
    key code t using {shift down, control down}
    else if (d contains "c") and (d contains "s") and d contains "k" then
    key code t using {command down, shift down, control down}
    else if (d contains "c") and (d contains "s") and d contains "a" then
    key code t using {command down, shift down, option down}
    end if
    on error
    repeat with k in t
    if d is "" then
    keystroke (k as text)
    else if d is "c" then
    keystroke (k as text) using {command down}
    else if d is "a" then
    keystroke k using {option down}
    else if d is "k" then
    keystroke (k as text) using {control down}
    else if d is "s" then
    keystroke k using {shift down}
    else if d is in {"ac", "ca"} then
    keystroke (k as text) using {command down, option down}
    else if d is in {"as", "sa"} then
    keystroke (k as text) using {shift down, option down}
    else if d is in {"sc", "cs"} then
    keystroke (k as text) using {command down, shift down}
    else if d is in {"kc", "ck"} then
    keystroke (k as text) using {command down, control down}
    else if d is in {"ks", "sk"} then
    keystroke (k as text) using {shift down, control down}
    else if (d contains "c") and (d contains "s") and d contains "k" then
    keystroke (k as text) using {command down, shift down, control down}
    else if (d contains "c") and (d contains "s") and d contains "a" then
    keystroke (k as text) using {command down, shift down, option down}
    end if
    end repeat
    end try
    end tell
    end shortcut
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) dimanche 18 avril 2010 11:08:09

  • Export List of File Name with Faces Identified

    I'd like to export a list from Aperture, into any file format - Words, Numbers, rich text, MS Word, MS Excel, anything!!
    The list would show the file name and all the faces identified in that file.
    My daughter is in her High School dance team. I've taken more than 1000 photos. Here is is the end of the season and I'd like to distribute the photos among the dancers/parents. They don't have the software or care to take the time to sort through the pics to figure out which photos they are in. I'd at least like to give them a list of photos so that can find the ones
    Faces can be a helpful feature (though I hate all the file versions all over the place in iPhoto and Apeture).
    I've read that Faces is not stored in the metadata of the file. I've tried to export metadata, but not much comes out other than the standard file size, camera settings, etc.
    Easier to describe the situation, I guess, but would be helpful for many photos with people (weddings, parties, reunions, genealogy photos ...)
    which is Faces is supposed to be about, RIGHT???
    I guess a work around could be exporting the files from the identified faces. That seems like it would just junk up more storage/memory. I guess you could use a file list  naming app and then delete the exported files - that just seems stupid.
    I expect a little more from a souped up version of iPhoto for $79. Especially if I have Adobe Creative Suite with Bridge. If Apple wants to give a little shove to Apple, and bring novice users from looking for a non Apple solution, I think this would be an EASY no brainer.
    Thanks anyone who has a solution of a decent work around.
    Beth in Wisconsin
    Aperture 3.06
    Adobe Creative Suite 6

    Dear Kirby, Thank you so much for your reply.
    I'm familiar with Metadata. I've worked with Canto Cumulus and Filemaker.
    I guess a more important question - where is the Faces data stored?
    I'm looking to export a text version by file name, such as in a spreadsheet. Something like this
    File Name     PhotoFile_01.jpg     PhotoFile_01.jpg     PhotoFile_03.jpg
    Faces ID'd    Nina Totenburg        Carl Kasel               Tom Ashbrook     
    Faces ID'd    Carl Kasel                Peter Sagel            
    Faces ID'd    Terri Gross               Terri Gross              Nina Totenburg
    Faces ID'd     Renee Montaigne    Tom Ashbrook
    OR
    File Name                    Face 1               Face 2          Face 3               Face 4
    PhotoFile_01.jpg         Bob Braun         Tina Fey        Andy Warhol
    PhotoFile_02.jpg         Leah Jones       Beyonce        Tina Turner      Dave Matthews
    PhotoFile_03.jpg         Lisa Liu            Geena Davis
    Anything that would identify the faces in a photo to a text file ....
    Yes I understand that most of the IOS software is supposed to make it easier for the new and less techie user. But if you are going to create all these versions and mini files for the photos, why not make them accessible to a power user. I'm not a coder, but I've been using macs for 25 of my 40 years.
    What gets me is that you go to the trouble of identifying all the Faces. What is Faces really supposed to help you with?
    I mean Facebook is better at face recognition than this. Don't go on a tangent - about this - just sayin'.
    Thanks for your time!
    Beth

  • HT4221 Synched Photos from PC should be in File Name Order, not by last modified date

    Since installing IOS 7 the sorting of my photos from my PC sent to my Iphone have become totally random.
    Apple claims the files are by Last Date Modified.
    I have a very detailed file naming system on my PC which makes Photo Retrieval by Date, Name, Subject easy.
    Is there any software that recognizes the Windows File Name?  The sequence file names given during SYNCH are useless.

    When you import into iPhoto, each imported set goes into a folder called Last Import.
    One way to do what you want without losing your organization:
    iPhoto / File / Import to Library. Navigate to the first folder on the pc. and click on Import. The contents of the folder on the PC will all come together.
    On the Mac the photos will be in the folder called Last Import.
    On the Mac, create a new folder with the name you want. (File Menu / New folder)
    Move the photos as a batch (select all) from the Last Import folder to the one you just named.
    Do this as many time as you have folders.

  • File Adapter: Dynamic file name

    Hello,
    I would like to use a filename like this:
    Name.<DOCNUM>.Direction.<Timestamp>
    For DOCNUM I use variable substitution. Works fine.
    For <Timestamp> I need a different format as the timestamp function
    in file adapter create. So I try to set up my timestamp in mapping like
    dynamic file name:
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Timestamp");
    conf.put(key1, a);
    Input a is date function which creates my desired timestamp format. In file adapter I try this:
    Name.%DOCNUM%.Direction.%Timestamp%
    or
    Name.%DOCNUM%.Direction.Timestamp
    or
    Timestamp
    all doesn't work for Timestamp.
    So is there a possibility to configure a dynamic filename like this???
    Is there a possibility to access dynamic configuration variables in dynamic filename except
    the known for filename and directory??
    thanks
    chris
    Edited by: Christian Riekenberg on Mar 10, 2009 4:02 PM
    Edited by: Christian Riekenberg on Mar 10, 2009 4:05 PM

    your file name needs to be
    Name.<DOCNUM>.Direction.<Timestamp>
    dont use variable substitution. use only dynamic configuration and set the file name
    introduce a logic that will create the string
    Name.<DOCNUM>.Direction.<Timestamp>
    eg. String filename = "Name" + var_docnum + "Direction" + var_timestamp;
    then use the dynamic conf code to set the file name and use adapter specific properties in you adapter to retrieve it.
    Ref:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm

  • Changing a deployment's file name

    I'm trying to debug a large application and I'm having a problem with the Windows File name limit.
    I have a project called GenericClientCalculationEngine, which creates GenericClientCalculationEngineWebApp.war. Is there a way in JDeveloper to set what filename should be used to during debug/run in JDeveloper? I'd like to shorten the name down enough to not hit these limits.
    Change I just change the deploy name or do I need to rename my project?

    My last reply i was mentioning about the changing the deployment profile name.
    You should be able to change the deployment file name as mentioned by Shay above.
    Did you check that you don't have multiple deployment profiles and you are using the wrong one (just checking) ?

  • Contact sheet truncates and changes file name

    Greetings!
    I am using Photoshop CS3 on a G5 PowerPC running OS 10.5.4. My file name is 29 characters long and looks like this - Gar_070208_MD_42BlueHeron_055.JPG. When I make a contact sheet, PS puts the images in the correct order left to right top to bottom. What is wrong is PS changes the last part of the file name.
    My settings (I have 4 across and 5 down) are X-Include All Subfolders, X- Flatten All Layers, X- Rotate For Best Fit and X-Use Filename As Caption (Helvetica size 12 pt) The full name fits under each image with room to spare. The resulting name looks like this for the name above - Gar_070208_MD_42BlueH#4A895.JPG. I have tried making the CS a number of time varying the font size and no change. When making those changes, I notice that the file names are still wrong and are consistently the same wrong. And they get weirder, like #4A89D, #4A8A9, #4A8B1 ....
    The only thing I can figure is that PS does not like a file name longer than 27 characters, since that is what it truncates to. Or there is another problem/bug in the system.
    Any thoughts, ideas or workarounds?
    Thanks in advance!
    Cheers!
    Gar

    I have the same problem. I am using PS CS3 running under OS 10.5.2. If the file name excluding the extension is longer than 27 characters, I get the same error, starting with the # character. However, if the file name is longer than 27 characters, it still appears correct in Bridge and in the documents folder. This leads me to speculate that it is a Photoshop problem, not an operating system issue.
    When I was using contact sheet II in PS CS2 under Windows XP, it worked ok for more than 27 characters.
    Guy Painchaud

  • Windows file manager I-funbox isit safe and legal?

    I heard about this windows program called i funbox they quote "Manage files on your iPhone or iPad in a way just like Windows File Explorer but more robust and friendly" isit legal to download and isit safe i dont want to do anything illegal here

    Hi, I had the same problem and the only solution that worked was to change all references to the old name in the PC's Registry. Caution, read the last sentence before attempting this.
       Type regedit in the search field and when you find it, open the program. Click Edit then click on "Find" and type in the old iphone name you want to get rid of, eg. 'Joe's iphone'. When it is found (exactly as it appears in Windows) replace it (and ONLY it) with the name you want eg. 'Fred's iphone'. Keep searching the registry and change every reference to the old name. When no more can be found, close regedit and reconnect your phone. It will now show the same name as the itunes name. Note: type the registry name and itunes name exactly the same.
    DO NOT change anything else, if you make a mistake when working in the Registry it can have serious consequences with your PC's operation. Do this at your own risk. If unsure create a System Restore point first.

Maybe you are looking for

  • Problem in clearing GR/IR clearing account thru' F.13 (automatic clearing)

    Hello, While clearing the GR/IR clearing account thru' F.13 (automatic clearing), the system is not giving any error in the test run.But, at the time of Production run following error is given " Account blocked - no clearing  XXXX (GR/IR clearing a/c

  • Should I sync or create a new itune accounts for my new ipad Air

    I have been using ipad 2 for the past two years and just bought an ipad Air.  I would like to know the best solution as to whether I should sync to my current itunes account or should I create another itune for my new ipad Air.  Appreciate your help.

  • Querying ALL_SDO_GEOM_METADATA on 11g

    I have a Query which I am using to test if a table contains LRS data (If 'M' is contained in the ResultSet, this determins that it is LRS data) Sample Query..... SELECT SDO_DIMNAME FROM TABLE( SELECT DIMINFO FROM ALL_SDO_GEOM_METADATA WHERE OWNER = '

  • I can't close Dreamweaver CS3 ?

    Hello, if somebody could help me ? Il changed my PC (HP Pavilion 2070-EF - Vista 32), it worked perfectly with my "old" PC.  But now, when I used a long time Dreamweaver, sometimes (often...), it is impossible to close the main window. I have to clos

  • How to delet edited folder? (iOS iPhoto )

    How to delet edited folder? (iOS iPhoto ) Who can teach me? Thanks a lot.