Sounds good to me.
From: br_forum-bounces@ads.net [mailto:
br_forum-bounces@ads.net]
On Behalf Of Susan Smith
Sent: Tuesday, May 26, 2009 1:51 PM
To: Business Rules Forum
Subject: Re: [BR_forum] Creating new files with uppercase filenames
Oh. Well, I guess I don't know what I'm talking about (surprise, surprise). But at least George's fix works, so I went with that first.
Having said that, I just tested "CONFIG filenames mixed_case" and I see that it works too. If I were to use this solution, I'd need to create a function that will poll STATUS ALL to find out what the original status of "filenames" is before I change it to "mixed case" so that I can set it back to it's original status afterwards. I don't want to mess with any permanent settings either in BR or in Windows, so I'd prefer to reset it after creating the file. Does that seem like a reasonable way to proceed?
-- Susan
John Bowman wrote:
The windows setting only affects how the filename displays, not how it’s stored. There should be a way to change that setting without regedit.
Filenames mixed_case in your config file will tell BR to respect the case of the filenames you specify in open statements. George’s way conveniently works around this.
-john
From: br_forum-bounces@ads.net (
br_forum-bounces@ads.net) [mailto:
br_forum-bounces@ads.net (
br_forum-bounces@ads.net)]
On Behalf Of Susan Smith
Sent: Tuesday, May 26, 2009 12:49 PM
To: Business Rules Forum
Subject: Re: [BR_forum] Creating new files with uppercase filenames
Hi John,
In Windows XP, there is a registry setting that tells Windows not to change the case when you display files. I don't want to use that because in every OTHER situation, I prefer the lowercase filenames. It's just this one particular file that has to be created in upper case. The other issue with changing it in Windows is that I'd have to do that to every computer at my customer's site (where this file will ultimately be created) and they may not want that registry setting permanent either. Plus, when they replace computers or reinstall OSs, they'd have to remember to reset that registry setting or the submitted file will all of a sudden be rejected when they send it up to the County with the wrong filename case.
In case you're interested, the registry key is
HKEY_CURRENT_USER Software Microsoft Windows CurrentVersion Policies Explorer
There should be a DWORD value (or you create one if it's not there) named
DontPrettyPath that tells Explore not to mess with the case when displaying filenames. The value for it should be 1 (or 0 to turn "pretty path" back on)
I see that George has an idea, so I'll go check that out. Thanks for the response. I never thought I'd WANT to see filenames in all upper case again.
-- Susan
we John Bowman wrote:
You may want to know about:
Config FileNames Mixed_Case
You may also need to know that by default windows is set to display all caps names as all lower case… you can change this from an windows explorer window goto Tools>Folder Options> (somewhere in there I thought – but I couldn’t find the setting on my computer) – someone else – if you know where to change this setting please chime in.
-john
From: br_forum-bounces@ads.net (
br_forum-bounces@ads.net) [mailto:
br_forum-bounces@ads.net (
br_forum-bounces@ads.net)]
On Behalf Of Susan Smith
Sent: Tuesday, May 26, 2009 12:13 PM
To: BR Forum
Subject: [BR_forum] Creating new files with uppercase filenames
Hi folks,
Is there a way to get BR to honor the upper/lower case with which I'm naming a new file? I have to submit a file to a county agency and the filename has to be EXACTLY what they indicated, including the case of the filename. No matter what I do, Windows reports the created file as lowercase. I couldn't see an option in BR to change this, and it only affects the longfilename. See below:
Even if I rename the file afterwards (either with EXECUTE "RENAME..." or EXECUTE "SYS RENAME..." the filename stays in lowercase.
At first, I thought that this was just a Windows thing. But if I use EditPadPro to create a new file and "save as" with an uppercase filename, then it STAYS in uppercase in Windows Explorer.
-- Susan