Hi, I was wondering if there is some type of command that can be used from the command line/script that can add comments to files
I often have to add comments to multiple files and this would be a great help.
Is this possible?
Thanks,
Davey
Create file comment by external command/script
Moderators: Hacker, petermad, Stefan2, white
Re: Create comment by command/script
If you work on a single folder with descript.ionDavey_D wrote:Hi, I was wondering if there is some type of command that can be used from the command line/script that can add comments to files
I often have to add comments to multiple files and this would be a great help.
Is this possible?
Thanks,
Davey
The easiest way is to edit the descipt.ion file using filenames stored into clip.
A) you can make a user command to edit the descript.ion file from current folder (ex em_editComments notepad descript.ion)
You can than create as new command that call both:
cm_CopyNamesToClip , em_editComment
- sqa_wizard
- Power Member
- Posts: 3896
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
The official way to do it, is to use file attributes:I often have to add comments to multiple files
1. select all the files you want to comment
2. Choose "Files - Change attributes" from main menu
3. Click on "More attributes" => "tc - comment" appears
4. enter the comment into edit field
5. Press "OK" to apply comment to files
Note: works for search results or bulk list (Ctrl-B) too
#5767 Personal license
HI guys, thanks for your responses; Nice things that I didnt know about!
However, in this question, I was actually referring to doing this by external scripting.
I.e., I have a program which creates some files into a folder, and I would like to be able to insert a comment at file creation (by the program)
Is this possible?
Thanks,
Davey
(I dont know if this matters, but I'm using C# and Python)
However, in this question, I was actually referring to doing this by external scripting.
I.e., I have a program which creates some files into a folder, and I would like to be able to insert a comment at file creation (by the program)
Is this possible?
Thanks,
Davey
(I dont know if this matters, but I'm using C# and Python)
Your string for multiline TC descriptions should look like this (C#):
plus CRLF in any form.
Code: Select all
'"filename with spaces.txt"' + ' ' + 'Description Line 1\nDescription Line 2' + (char)'\x0004' + (char)'\x00C2'
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact: