Removing .cwk from appleworks file names
I upgraded to appleworks 6.2.9 and some of my files open up and place ".cwk" at the end of the file name. I can delete this from some documents names and not others.
Hello
It is perhaps due to changes in the setting of your AppleWorks preferences.
Look at AppleWorks > Preferences > Files
you may check or uncheck the box ".cwk Suffix".
If it is checked the extension will be added (if it is not already available)
If it is unchecked the extension will NOT be added (but will not be removed if it is already available).
From my point of view, it is better to always put (and display) it.
This is quite the best way to be sure that you are working with a true AW document.
Yvan KOENIG (from FRANCE lundi 16 octobre 2006 09:13:4)
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!
KevinHi,
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 -
How to remove Unicode from XML file
I get following error when unmarshal xml:
[java] org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x15) was found in the element content of the document.
Anyone know how to remove Unicode from xml file? Can I remove the unicode by rebuild the file?
ThanksThese sort of error usually occur when you're using a different character encoding to read the file than the one you wrote it with. Perhaps if you were to post the problem section of the file and/or the code that created it in the first place.
-
How do I grab a value from a file name and load it in a field/column?
Hi,
I am loading this .txt file (OUS_RAW_NYC_05_2011.txt) into an internal table i_raw.
I want to pick out the NYC characters from the file name and fill it as value for <wa_raw>-field1 for all records.
How do I do this?
Pls advice.
Thanks!Hi Durgesh,
I am doing this in a program via SE38 and not via transformation routine.
Now I am working on this piece of code to get the value.
file_str = //rdmsbw/dev/data/output/all/OUS_RAW_HCM_05_2011.txt
I only want the characters HCM from file_str.
When I execute this code below:
MOVE file_str TO org_unit.
WRITE / org_unit+37(12).
<wa_raw>-/BIC/ZOUORGUT = org_unit.
my output is = //rdm
how do i extract out HCM?
Pls advice.
PS: also pls help me out with my another post
http://forums.sdn.sap.com/thread.jspa?threadID=2141618&tstart=0 -
Hi ALL,
Can any one help us regarding How to fecth the Date column(or month column) from the file name specified in the path in a generalized way .
For example :
file name is :subscribers (Cost) Sep13.csv is specified in the below path
E:\Accounting\documents\subscribers (Cost) Sep13.csv
here I need to fetch the "Sep13" as a Date column in the ODI 11g in the generalized way.
Can any one help us in this case as early as possible.I would suggest using a piece of Jython code for this. Something like this...
import os
import os.path
filelist = os.listdir(E:\Accounting\documents\)
for file in filelist:
datestr = file[19:-4]
You'd need to work out what to do with datestr next... perhaps write it to a table or update an ODI variable with it.
Hope this is of some help. -
Hello guys,
I need some help. I have to remove some content of Tolerance "column" (see attach). The string which I wish to remove is "+/- 0s" and replace it with an empty string. I need to remove this for each row where "+/- 0s" appears.
Thanks
Solved!
Go to Solution.
Attachments:
sample.txt 3 KBHi Samoth,
I dont know if I understood your requirement properly, but please check the attached snippet if it helps.
If this does not satisfy your requirement, then please give some more details.
Attachments:
Remove string from txt file.png 21 KB -
Get Logical file name from Physical file name
Hi everybody,
Please how can i get Logical file name from Physical file name ?
Thanks & Regards
HassanHi,
What i want is to get Logical file name from Physical file name, and not the opposite (get Physical file name from Logical file name).
Thanks & Regards,
Hassan -
How do I remove spaces and special characters from the file name during rendering?
I understand that I can set LR_renamingTokensOn to true, but I would like to replace all spaces in the file name with an underscore and remove characters not in the range A-Z and 0-9. What's the easiest way to achieve this?
local photo = catalog:getTargetPhoto()
local sesn = LrExportSession {
photosToExport = { photo },
exportSettings = {
-- ... (determine from export preset) - whatev you want, just be sure you set export directory: LR_export_destinationPathPrefix
LR_tokens = "{{custom_token}}",
LR_tokenCustomString = LrPathUtils.removeExtension( photo:getFormattedMetadata( 'fileName' ) ):gsub( "[ %c]", "" ) -- remove spaces and control characters
sesn:doExportOnNewTask() -
How to user PowerShell -replace to remove the dreaded em dash from a file name?
I have a bunch of .msg files in a directory and want to zip them up (to send them to our spam filtering company), but I keep getting errors on file names that contain the em dash (—). I believe it's (char)0x2014.
[edited]... the correct syntax is [char]0x2014.
I wish to eliminate the em dash in the file name but I can't seem to find anything on the web about replacing em dashes. When I paste '—', PowerShell replaces it with a '-'.
I found this neat function that does a great job replacing multiple characters within a string.
http://powershell.com/cs/blogs/tobias/archive/2011/04/28/multiple-text-replacement-challenge.aspx
I am using the below code for my string replacement.
Thank you for your help.
function Replace-Text {
param(
[Parameter(Mandatory=$true)]
$text,
$replacementlist = "(-,,',,%,,$,,@,,#,,&,,’,"
Invoke-Expression ('$text' + -join $(
foreach($e in $replacementlist.Split(',')) {
'.Replace("{0}","{1}")' -f $e, $(
[void]$foreach.MoveNext()
$foreach.Current)
$path = '<path>'
Get-ChildItem -Path $path | Rename-Item -NewName {(Replace-Text $_.Name).trim()}Here is a simple filter that will strip out all nonprintable chanracters.
$newname=$file.Name -replace '[^a-zA-Z\.]'
I just tested it on Win 7 which supports has a Unicode filesystem and it successfullstrips the bad characters.
We also need to do this on files uploaded to SharePoint and OneDrive.
The ~ and other similar characters are not allowed in may systems. You should keep a translation log and tag all renamed files with some obvious tag.
¯\_(ツ)_/¯ -
Setting up the File Name of email Attachment from Received File Name
Hello All,
I have to send the Received File in attachment to an Email if there is any exception. Here I can attach the file, but I cannot set the file name of attachment as the Received File Name. Is there anyway of doing this without using custom pipeline component.
Here I am using the Orchestration and SMTP Adapter.Any help is greatly appreciated.
ThanksIt might work if you use a custom pipeline component on your send port and in the Execute method populate the MIME.FileName property of the body part.
Something like:
public IBaseMessage Execute(IPipelineContext pc, IBaseMessage inmsg)
string filename = inmsg.Context.Read("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties");
inmsg.BodyPart.PartProperties.Write( "FileName", "http://schemas.microsoft.com/BizTalk/2003/mime-properties", "filename);
return inmsg;
You can take reference from similar post here
SMTP - Setting attachment filename
Anther good article with MIME is here
Setting attachment filename with the SMTP Adapter
For MIME case your SMTP message construct statement would be like below
multipartMessage.MessagePart_1= InMSG;
multipartMessage.MessagePart_2="This is message part2 as a string";
multipartMessage(SMTP.Subject) ="Email From Dynamic Port";
multipartMessage(SMTP.From) ="[email protected]";
multipartMessage(SMTP.SMTPHost) ="yoursmypserver.com";
multipartMessage.MessagePart_2(MIME.FileName) = "Attachment_Name";
multipartMessage(SMTP.SMTPAuthenticate) =0;
Thanks
Abhishek -
File-File - Need to extract data from source file name???
Hello Experts,
I have a unique situation. In my file to file scenario, the source file name is of the format XYZ_yymmddHHMM.dat. there is field in the target file which has to filled with the date that is there in the file name of the source file (yymmdd). How can this be achieved? Normally we do the other way round using vaiable substitution where we can name a file depending on the value in any of the target field structure.
Please help.
Regards,
YashHi,
please prepare the udf with the following code.
i mean, dynamic configuration concept.
where u get the file name, then use substring function to capture date from right side.
//write your code here
// getFileName User Defined Function
// function to create name of output file
String filename;
filename = strFile;
try {
// initialize DynamicConfiguration for create file with given name
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
//create file with the specified name
conf.put(key, filename);
} catch (Exception ex) {
return filename;
warm regards
mahesh. -
Acrobat 8 standard - Removing pictures from PDF files
I hope this is an easy one to answer but I'm having troubles removing pictures from a PDF file and I need some help, can anyone answer please?
If standard has the Object touchup tool, you can select them and then delete them. I suspect that this may have the same problem as the redact tool as mentioned by graffiti.
-
Can't remove music from Flash file
I decided not to use a music (wav) file and want to delete it
from my file. I deleted it from the library and also the layer it
was on. I publish the file and the sound still plays! I have no
idea how to get rid of it!jacwright wrote:
> I decided not to use a music (wav) file and want to
delete it from my file. I
> deleted it from the library and also the layer it was
on. I publish the file
> and the sound still plays! I have no idea how to get rid
of it!
You must be previewing an old file, perhaps cached. If there
is no sound, it's impossible
for flash to play it :)
Save it under new name and publish again.
Best Regards
Urami
"Eat one live toad in the morning and nothing worse will
happen to you for the rest of the day."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Remove Namespace from XML File except Attribute
Hi XI Experts ,
1.I have referred to the code of xslt Generic XSLT Code to Remove ALL Namespaces from XML:
http://forums.sdn.sap.com/thread.jspa?threadID=1920630
But this removes the Attribute : id from the records .
My expected output is supposed to be :
<?xml version="1.0" encoding="GBK"?>
<body>
<head>
<nsrsbh>112001069711</nsrsbh>
<nsrmc>诺维信(中国)生物技术有限公司出口发票</nsrmc>
<dcrq>20120209</dcrq>
<sssq_q>20111201</sssq_q>
<sssq_z>20120207</sssq_z>
<records>4</records>
</head>
<data>
<record id="1">
<fpdm></fpdm>
</record>
</data>
</body
But after using this XSLT code it removes :id from <record_1 id=> and generated the below code :
The xml file now doesn't contain teh attribute :id
<?xml version="1.0" encoding="GBK"?>
<body>
<head>
<nsrsbh>112001069711</nsrsbh>
<nsrmc>诺维信(中国)生物技术有限公司出口发票</nsrmc>
<dcrq>20120209</dcrq>
<sssq_q>20111201</sssq_q>
<sssq_z>20120207</sssq_z>
<records>4</records>
</head>
<data>
<record>
1
<fpdm></fpdm>
</record>
</data>
</body>
Could you please provide your input
Plaese note : Here XI versin iS x1 3.0 SP7 . I have tried suing the Analyzer bean for the Encoing of Chinese : GBK Intsead of UTF-8 in the Namespace . But AF_Modules/XMLAnonymizerBean is not comptacible with XI 3.0 SP7
Hence i have used the following code to remove namespcae and add Encoding :GBK instead of UTF-8:
<?xml version="1.0" ?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output encoding="GBK"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>You could use exclude-result-prefixes.
For example:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wt="http://www.example.com" exclude-result-prefixes="wt">
</xsl:stylesheet> -
Remove password from .pst file
Dear Support,
How to remove forgetten password from .pst file.
I use OS win7 professional and Ms office 2013. So please help me for removing forgetting pst password.
When I add pst file in new outlook. Then Pst file ask password.
please help me.
I will be thank ful to you.the goals of a password is to protect the contents from anyone who does not know the password.
As far as I know, there are no tools provided by Microsoft to remove, alter or read the password from a protected pst file. It might even violate local laws to do so.
https://support.office.com/en-ca/article/I-forgot-my-Personal-Folders-file-pst-password-cfaec399-0de7-4f8f-a81b-918b38867ed6
Some third parties might claim to have tools that remove, alter or read the pst password, but I should urge you to be prudent when testing/using such tools (or paying for them).
MCP/MCSA/MCTS/MCITP
Maybe you are looking for
-
SYNCING IPOD (5th Gen Video) w/Windows XP on an Intel Core 2 Duo
SYNCING IPOD I'm trying to sync my IPOD from the library in Itunes on my computer, but it will not sync and I see all the songs on my computer along with the different playlists such as: dance, instrumental and so on. The error that I get for the IPO
-
I have modelled a BPM process and attached Webdynpro UI's to its human activities. I am able to start the process from the Process Repository, but the tasks are not getting visible in the Uniiversal Worklist of the Task Principle Owner. When I'm logg
-
I want images instead of black screen on VC video.
Hi, I made a video with VC but I want an image instead of a black screen when it is producd. I tried ending my production with various images but when it is produced there is always a black screen. Any help would be appreciated. Here is my video I am
-
As of last night, it always did, but today, I see nothing on the desktop or finder sidebar to indicate the flash drive's mounted. My MBP mounts other flash drives thru the same usb port and mp3 players, just not this one anymore. And I see it on our
-
Multiple Users subnets and WSA + ASA
Hello Dear Sirs! I have network topology, like we can see on the picture. I have ASA inside interface and WSA P1 interface, in the one L2 segment, but users and Active Directory in other L2 segments. Can I use WSA as transparent proxy? and WCCP redi