DOriginalName without the file extension
Folks
I'm sorry if I'm posting this in the wrong place, but I'm very much out of my depth.
The organisation I work for has recently adopted Oracle Content Server to manage its intranet site, and it's fallen to me to work out how to report on my team's content. I'm using the built-in search facility and discovering bits and pieces of coding as I go along. However, I'm stuck with this:
<$dOriginalName$>
This gives me filenames with file extensions, whereas I need filenames without file extensions. Does anyone know how to achieve this? For information, both our filenames and our file extensions can be of various lengths, but there will never be more than one '.' (namely the '.' separating the filename from the file extension).
Many thanks in advance.
Ed
Not sure about your requirement. But if you are asking it at database level then
WITH T1(str) AS(
SELECT 'ABCD.TXT' FROM DUAL UNION ALL
SELECT 'CHEF.DISCARD' FROM DUAL)
SELECT SUBSTR(str,1,INSTR(str,'.')-1) FILE_NAME FROM T1;
OUTPUT:
FILE_NAME
ABCD
CHEF
If this is not then post some sample of your data.
Similar Messages
-
How can I get a filename without the file extension?
I using a JFileChooser to select and read a file. Now I want to get the filename without the file extension
JFileChooser j = new JFileChooser;
String file = j.getSelectedFile.getName();
At the moment I get this result "file.dat". I need only the filename.....
Thank you
ThomasIt's quite that.
Here is the code to do that (and the method to get only the extension):
public String getFileName(String text) {
int ind = text.lastIndexOf(".");
if(0<ind && ind<(text.length()-1)) {
return text.substring(0, ind);
return(null);
public String getFileExtension(String text) {
int ind = text.lastIndexOf(".");
if(0<ind && ind<(text.length()-1)) {
return text.substring(ind+1).toLowerCase();
return(null);
}(I used 0<ind instead of ind>0 because with the code formatting there is a bug with > )
I hope this helps,
Denis -
hi,
How to identify the file type (eg: InDesign or Quark) without knowing their file type. How can we find what kind of file is that??? without their extension like ('.indd','.qxd') before import to the document...Hi subha_oviya,
Take a look at the file filtering section in the InDesign CS3 sample script ImageCatalog.jsx to see how to look for file types. I'm assuming that you're using InDesign CS3, and that you're using the Mac OS--you didn't say.
Thanks,
Ole -
Can one lift a file-name without the file.extension in javascript
I suspect this matter may have come up before but I could not find a thread on it ...
Anyway: If I grab a filename for later use with
var thedoc = app.activeDocument
var docName = thedoc.name
it picks up the original file-extension too.
Is there a way to avoid this or to »substract« the extension later on?
What I want to use that for is for saving multiple flattened CMYK-files from a layered RGB-psd-file into the same folder as the psd-file and appending a letter-combination to signify what printing-conditions they were generated for.
As Im plenty ignorant in Scripting-matters any help would be appreciated.Here I go again:
Originally I thought I would combine Actions and Scripts into a Droplet but then I got to thinking one Script containing all the operations would be neater.
However I cant figure out how to write the Color Conversion of the RGB-files to CMYK into the Script.
In »convertProfile« how do I address the ICC-Profiles and the Intent?
Once again help would be appreciated, as I simply cant seem to figure it out from the Adobe-documentation on Javascript or a web-search. -
URLs without the file extension showing
This is just one of those odd things I've never had to do, so have never thought about it - but I've been asked to upload a powerpoint presentation, with a URL of just www.mydomainname.com/powerpointname
If anyone could let me know how this is done, that would be much appreciated.
Thanks.Try this: name your powerpoint file index.html and put it into a folder (in your site) named powerpointname.
Ideally, that will default to showing the file without the filename technically showing.
Here is a link that discusses powerpoint presentations as webpages: http://presentationsoft.about.com/od/nextstepsinpowerpoint/ss/save_as_webpage.htm
Beth -
I save a lot of images using firefox, often times from a large batch or series of images. It used to be that I would click on a previously saved image and the entire file name including the file extension (i.e. image_example.jpg) would appear in the "save as" line. Now when I click on a previously saved file, the file name appears without the file extension (i.e. image_example). Which means I have to manually type .jpg every time. For a large collection of images that I am hoping to use the same root file name and then add chronological numbers at the end, this has become incredibly frustrating, especially as it is a previously unnecessary task.
I am using a new Macbook Pro and maybe there's something Apple related to this...? It did not happen on my old PowerBook G4. I have file extensions turned on in System Preferences.
It should be noted that I have searched high and low and have even gone into the Apple Genius Bar where they were just confused as I was and of course ended by urging me to use Safari (shocker!) as it has all kinds of new extensions and bells and whistles. I seriously feel alone on an island with this dumb, hard to google problem. Thanks so much for any help anyone out there might have.
I mean: is this as simple as changing a setting in about:config?
Your assistance is greatly appreciated.Thanks for your response Mylenium, however like I mentioned multiple times, I did change all of my trackpad/scrolling settings in system preferences. And if I wanted to use a normal mouse (or a tablet), I would've gotten an iMac instead of a MacBook Pro. I travel often and work all over the place, not always with access to a decently sized workspace that would be required for using a mouse or tablet.
-
Download ZIP file without changing file extension
I regularly download a zipped csv file, of the format: "filename.csv.gz". As the name does not change, Firefox adds a digit to distinguish it, so for example I get "filename.csv-3.gz". This is a pain as it changes the file extension which means that I cannot open the extracted file without first renaming it. I want to keep an archive of all the files, so deleting them each time isn't really an option, and neither is moving them to a different location each time. Is there any way the naming convention for downloads can be changed?
I think you have to disable it in your Operating system:
8dot3NameCreation
[http://support.microsoft.com/kb/121007] -
I was having an issue opening a spreadsheet with the file extension .xlsm. This appears as an attachment from a client which means macros were utilized when creating the spreadsheet. The problem lies in. The iPads ability to open the attachment. I downloaded the numbers app thinking this would be a default software to open any and all spreadsheets.
Please Help!
Ipad 2- iOS5You may need a version without macros on it. Unfortunately, pretty much all apps are skinned down versions of their original program, often with less functionality. For example in a word document I can italicize,bold and underline, but I only have a handful of fonts to play with and I don't think I can insert tables or images.
It is very possible that the app simply cannot run macros, which means that document may never work on an iPad. -
Hyperlink without adding file extension
I have created a website using iWeb and have several links on it to other files on my computer. IWeb overrides the text I put in as the link and adds the file extension to it. I have tried renaming the file without an extension but it is always put back by iWeb. How can I make sure the file extension is not viewable on the web page?
Highlight the link URL and overwrite it using the Link inspector.
-
Change document type without changing file extension
I've recently started using Dreamweaver CS3 after nearly a decade on Homesite (which regrettably wouldn't work on my new Windows 7 machine). I like Dreamweaver's code view but find it lacking in some of the flexibility and intelligence that Homesite had.
Case in point: I work on a rather large site that uses Classic ASP. Most of the site uses .html file extensions, but we have these configured to be processed through the ASP engine. When editing the pages on this site, Dreamweaver sees the .html file extension and assumes they're regular HTML documents, and color codes them accordingly, but it can't figure out ASP comments and code blocks and mangles the color coding. If I try to change the Document Type (in the Application > Server Behaviors panel), Dreamweaver insists on changing the file extension too.
It appears I can modify Dreamweaver's MMDocumentTypes.xml file so that it thinks .html files are ASP. But I don't want to do this globally for ALL the sites I work on, only for this particular site. It would be really nice if I could change the document type definitions on a per-site basis, or to change the document type for a file without having to change the file extension. Surely I'm not the first person to use non-standard file extensions on webpages. Any ideas on how to fix this?I think you have to disable it in your Operating system:
8dot3NameCreation
[http://support.microsoft.com/kb/121007] -
Photoshop cannot recognize the file extension
I'm trying to batch convert BMP files to JPG. One file works fine, as I build the Action. But when I run the batch, I get the error:
File: "/Users/bryan/7D FTP/Streak in 7D/Pyracantha 2/Strips - 2 wide/"
Error: Could not complete your request because Photoshop cannot recognize the file extension. (-25600)
I see that the file in question is a directory, not a file, but everything was set up correctly to override "open" commands etc.
Any ideas?The file names are an image sequence, Strip0002.bmp, Strip0002.bmp, etc.
But the file name never appears in the error message, only the path.
I tried moving the folders to the desktop in case the filename and path was too long, but it had no effect. The Batch Action always does the first file without error and fails on the second, as if it has remembered the output type JPG and is then confused by the input type BMP. -
How to configure IIS webserver with weblogic so that I can
invoke servlets without the .wlforward extension
As per the documentation iisforward.dll is registered as a filter and .wlforward
has also been
included as a special file type. However this requires me to key-in ".wlforward"
after my servlet name.
What I want is something like this
http://iis/MyServlet
Please help me find a solution to this
Thanks,
RishiI am able to invoke the servlet without the wlforward extension now.
However, now I am required to add /weblogic before the servlet
name otherwise it does not execute the pathtrim property.
I have tried with the pathprepend thing also.
Can we get rid of the /weblogic part also. I just want to execute
my servlet as http://iis/myServlet.
Your help in this regard is greatly appreciated...
Thanks..
"Rishi" <[email protected]> wrote:
>
Thanks for the reply Kumar.
I did follow the instructions as given in the Weblogic documentation
The documentation said to add iisforward.dll as a filter service
and register .wlforward as a special
file type to be handled by iisproxy.dll. For this,
while configuring the IIS server in the Home Directory tab
I added an extension ".wlforward" and the executable as
iisproxy.dll. Is this the way it should have been done...
I also modified the iisproxy.ini file as per the documentation.
I have added the WLForwardPath property and set it to /weblogic.
My server works fine when I give the url as
http://iis/myServlet.wlforward
but it does not work for
http://iis/myServlet and this is the way i'd want it to work.
Please tell me if I am missing something on the configuration part
and if there is something special that needs to be done. I shall
be grateful to you.
Kumar Allamraju <[email protected]> wrote:
http://e-docs.bea.com/wls/docs61/adminguide/isapi.html#101184
Rishi wrote:
How to configure IIS webserver with weblogic so that I can
invoke servlets without the .wlforward extension
As per the documentation iisforward.dll is registered as a filter
and
.wlforward
has also been
included as a special file type. However this requires me to key-in".wlforward"
after my servlet name.
What I want is something like this
http://iis/MyServlet
Please help me find a solution to this
Thanks,
Rishi -
Filename.xls is in a different format than specified by the file extension
When I create Dimensions and then try to maintain dimension members using the administration client, I receive the following notification from Excel 2007. The file you are trying to open, filename.xls, is in a different format that specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now? Yes or No.
I click yes and the file opens correctly in Excel. If I click No, I get an "Unspecified error" dialog box from BPC. I suspect this is a security feature in Excel 2007. Has anyone else run across this and if so, know of a good way to disable this message?
AdamAfter upgrading to Excel 2007, you may get the following error when you try to open an excel document.
The file you are trying to open .xlsx is in a different format than specified by the file extension. verify the file is not corrupted and is from trusted source before opening the file. Do you want to open the file now?
This errors particularly occurs when youu2019re trying to open an XLS file (Excel 2000-2003) with Excel 2007.
The easiest way to solve this problem, is to insert the following registry key. This will suppress the notification:
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Security]
u201CExtensionHardeningu201D=dword:00000000
The step-by-step instructions are as follows:
1.Click Start, click Run, type regedit.exe and press ENTER. This will open your Registry
2.Navigate to HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SECURITY
3.Right click in the right window and choose New -> DWORD
4.In the Name field, type u201CExtensionHardeningu201C (without the quotes)
5.Verify that the data has the value u201C0u2033
I advice the steps above to solve the problem, despite the fact that it is quick and dirty. -
How do I get the phone version of my site to use the same url as the desktop version -- without the "phone" extension. when someone posted a link to my site, they posted it from their phone and it included /phone. Now when people click on it - - it goes straight to the phone version of the site.
Please refer to similar post here :
https://forums.adobe.com/thread/1577934?sr=inbox
Thanks,
Sanjit -
How do I add a movie from my laptop to iTunes, what should be the file extension.
How do I add a movie from my laptop to iTunes, what should be the file extension.
The extension is usually .mov, .m4v, or .mp4. But you can't just change the extension. The movies have to be encoded in a particular fomat. Anything downloaded from iTunes or plays in Quicktime player will be fine.
Maybe you are looking for
-
SAP PI Connection Microsoft Exchange Server (Scenario Mail -- SAP PI -- File)
Hi experts, we want to connect Microsoft Exchange Server to SAP PI. POP3 and IMAP4 is not allowed on mail server side. But the standard mail adapter in SAP PI (configured as sender communication channel) only works with POP3 and IMAP4. Can anyone he
-
How to Post XML Messages with SOAP Headers to a Trading Partner URL
Hi All, Greeting to the Oracle B2B Community. We are currently working on how to post a Custom XML Message with SOAP Headers to a Trading Partner URL. I would really appreciate if anybody could provide me some inputs or links to some documentation on
-
Which one component can display html on jsff page? I dont know how to write hml document on adf page for example on popup? Html read from database like blob. Edited by: user12985010 on 14-Apr-2010 05:02
-
UCCX RECORDING STOP WORKING AFTER AGENT´S PC UPGRADE FROM XP TO WINDOWS 7
Dears, We have a customer with UCCX 8.0(2) already working, some agents upgrade per company policy theirs PC´s to Windows 7, After that, supervisor are unable to monitoring/recording the upgrade agent´s PCs. We installed Ethereal in those PCs and se
-
Help me cure my installation upgrade issues -- itunes doesn't work!
After installing the update (6) of iTunes, all I was getting was the brief flash of the program that others described. I have read through the various postings and have tried... the various cures, such as deleting files and deleting Norton (even thou