What is "ctr" file extension? - programming-languages

What is "ctr" file extension? Recently I found one site with a file named "create.ctr", what language is that?

File Extension .CTR Details
http://filext.com/file-extension/CTR
File extension CTR
http://www.file-extensions.org/ctr-file-extension
File Extension CTR and CTR File Format
http://www.computerfileextensions.com/file-extensions.php/CTR

I can't find any resource about programming languages suggesting (or enforcing) a .ctr extension.
If the website you linked is using Apache, they may be using mod_mime and .ctr might not mean anything.
You may have better luck with this question on Super User.

Related

Is there a solution to choose how my file is renamed if a file with the same name already exist?

In SharePoint online when my flow moves the file (PDF, ZIP...) named "U000" in a folder where is a file with the same name it renames the file in "U0001".
How can I customize this to be renamed like "U000-Rev.1" or "U000_copy(1)" instead of "U0001"?
I know this is the default SharePoint behavior and there is no option for renaming format but maybe I can change or add a code in "definition.json" file from exported ZIP flow (or somewhere else).
(I'm not a software developer so any answer/idea is welcomed.)
Thank you!
Add an if statement to check the file name you just uploaded. If it contains (1) at the end of the name then rename the file. This is probably the least convoluted fast approach but it's not 100% robust.
You can add more logic or change the approach to make it fully robust but you can look into that after you've got something working imo, baby steps.

How can I use python to edit docx and/or doc file tags on a windows system?

I have a folder with a large amount of .doc and .docx files, I would like to develop a python script to edit the tags of each file so I can find a file in the folder using the tags - thus making my life a little easier.
I am unsure of how to even start and was hoping someone could point me to a library or provide some sample code to help me get started.
I am not sure if the file extenstion matters because this seems to be a windows property (right-click file > Properties > Details > Tags > type in tags) but if the extension matters I do can change all the files to be .docx
The python-docx package provides methods to access most of the metatdata in a word file. The class docx.opc.coreprops.CoreProperties in specific allows you to modify author, category, etc. I didn't see tags mentioned but if you do some more research i'm sure you can find it.
docx.opc.coreprops.CoreProperties.keywords can be used to update doc file tags.

Acumatica - Attachments File Extension Filter

Good Day!
I am uploading some files in form as attachments and I am trying to filter the uploaded file extensions. But I am not getting the exact solution for this.
Is there any way to filter the extensions of the files being uploaded in file attachments?
Thank you so much for the help.
If you mean blocking file upload based on the extension you can do so in File Upload Preference Screen (SM202550):
If you mean the filter for the native open file dialog. It seems hardcoded for a handful of common web files and I don't think it can be changed easily.
If you mean the file upload dialog grid, unlike most grids in the system it is not filterable through the column headers:
Maybe the Search in Files page (SM202520) is what you're looking for. You can search files based on extension here:

Azure Logic Apps: Check for file type

I setup an Azure Logic App that checks for newly created files in a OneDrive folder and then sends these (images) to the MS Vision API for tagging. This flow works fine.
How can I setup a condition to only react on a specific file type (images) or even better only when the file has a certain file ending, like ".jpg", ".png" etc.?
I tried to setup a condition on the "File content type" but couldn't figure out the appropriate value for the condition ("image" doesn't work).
I couldn't find any hints on the webs and neither on SO. Any help is very much appreciated.
When reading file attachments using the GMail action, I had to use starts with because the Content-Type property contained the MIME type followed by the file name.
The following example is for checking if the file is an Excel file (.xlsx, not .xls):
I also used http://mime.ritey.com/ to upload my files and ensure I had the MIME type correct.
File name is part of the metadata provided by the OneDrive Connector.
Using that, you can apply conditions/filters based on the extension. File content type is probably pretty reliable but in practice, the extension might be better.
I think I found a solution. I was able to kind of reverse engineer the file types by setting up an app that is triggered by new files and writes the file content type to a text file in a different folder.
image/jpg and image/png are image files
application/x-zip-compressed is a zipped file
So it seems that Azure uses standard MIME types to identify the file type (which very much makes sense... :0)

Typo3 6.2.5 Quixplorer alternatives?

I just did a fresh Typo3 6.2.5 Install and wanted to use some kind of file editor which is able to edit .htaccess in Typo3 root. The standard BE file list doesn't list any file above fileadmin.
In the past T3Quixplorer was the way to go for me, but it doesn't seem to be developed any further. I found the kmcs_fileedit extension but that doesn't allow me to edit .htaccess.
Any suggestions?
Just add to kmcs_fileedit configuration (field Editable file extensions) in Extension Manager:
|\.htaccess$
There is an early extbase-version available on Github:
Quixplorer: Extbase-Version.
This version is working on Typo3 6.2, but it might not include every feature.
You can also try to get the original version running on Typo3 6.2 by modifying the t3quixplorer/mod1/index.php file
of the extension.
Comment out lines 55 and 57 of the file:
...
/*require ($BACK_PATH.'template.php');*/
$LANG->includeLLFile('EXT:t3quixplorer/mod1/locallang.xml');
/*require_once (PATH_t3lib.'class.t3lib_scbase.php');*/
...
Then the extension should be working again on typo3 6.2
One possible solution without any additional extension usage is to create a new File Storage record with a Base path set to / or typo3conf/ext/.
However the drawback is that you must add the file extensions also to [SYS][textfile_ext]in the Install Tool.

Resources