Jump to content

Recommended Posts

Posted

Is there a way to set the file properties, specifically title and comment? I found one post, but apparently that's only for the older windows. I'm using wind 10.

Posted

As far as I know @Champak, not with pure AutoIt and even not by calling DLLs. But of course, I could be wrong.

In the past I used https://exiftool.org and AutoIt as wrapper - works pretty fine.

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server

  Reveal hidden contents
  • Developers
Posted (edited)

So are we talking about the meta info in an jpeg file, in stead of any generic file...( which doesnt really have that) ?

..or an exe pe header info?

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
  On 10/24/2024 at 3:47 PM, Champak said:

that's only for the older windows.

Expand  

if memory serves in XP. Then there were other file managers that did it's own thing. What Win10 offers is to show it ( whatever it is ) if explorer can read it from the file itself.
So the short answer is: no. ( the long answer is use another file manager other than explorer )

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted
  On 10/24/2024 at 5:29 PM, Jos said:

So are we talking about the meta info in an jpeg file, in stead of any generic file...( which doesnt really have that) ?

..or an exe pe header info?

Expand  

The standard description section....I don't know if that's called meta info.

 

FileProperty.jpg

Posted
  On 10/24/2024 at 5:26 PM, SOLVE-SMART said:

In the past I used https://exiftool.org and AutoIt as wrapper - works pretty fine.

Expand  

Could you give an example of how you used it to write?

 

  On 10/25/2024 at 3:11 AM, argumentum said:

already told you in my previous post.

..you can use FFmpeg to set those in your media.

Expand  

Appreciate that, but that doesn't negate me from replying to a question asked of me. Also, I do know of other explorers/programs that I can use to input that info, but I'm looking for a way to do it within the app that I made as part of a larger function. Thanks.

Posted (edited)
  On 10/25/2024 at 4:43 AM, Champak said:

Could you give an example of how you used it to write?

Expand  

I use yt-dlp and it does it by itself. But I know that it uses ffmpeg.

  On 10/25/2024 at 4:43 AM, Champak said:

Appreciate that, but that doesn't negate me from replying to a question asked of me.

Expand  

oh, no, it does not. Actually, you should reply to everyone helping. By all means.
But you did not mention me, and I feel left out ๐Ÿ˜ฟ

  On 10/25/2024 at 4:43 AM, Champak said:

Also, I do know of other explorers/programs that I can use to input that info,

Expand  

Yes, there are and the way it works is that they keep ( for what I remember ) a file ( folder.nfo or something ) that keep the notes in, and will show the notes you made in the listview of the file manager.

  On 10/25/2024 at 4:43 AM, Champak said:

I'm looking for a way to do it within the app that I made as part of a larger function.

Expand  

ok. Share it when you're done :)

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted
  On 10/25/2024 at 4:43 AM, Champak said:
  On 10/24/2024 at 5:26 PM, SOLVE-SMART said:

In the past I used https://exiftool.org and AutoIt as wrapper - works pretty fine.

Expand  

Could you give an example of how you used it to write?

Expand  

Hi @Champak ๐Ÿ‘‹ ,

exiftool is a command-line application which can be call through console/terminal, via batch or AutoIt etc.

Here is a simple example to change title and comment like you mentioned in your first post.

// Set specific properties to a file (creates a new file).
exiftool -title="This is my title" -comment="This is my comment" "C:\Store\my-file.mp4"

// Set specific properties to a file (overwrite the original file).
exiftool -overwrite_original -title="This is my title" -comment="This is my comment" "C:\Store\my-file.mp4"

Adjust the placeholder texts and I hope this will help you ๐Ÿ˜€ .

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server

  Reveal hidden contents
Posted (edited)
  On 10/25/2024 at 5:02 AM, argumentum said:

oh, no, it does not. Actually, you should reply to everyone helping. By all means.
But you did not mention me, and I feel left out ๐Ÿ˜ฟ

Expand  

ahh, but you did not ask a question, you made a statement. And my response stated replying to everyone asking a question. So no need to feel left out, you weren't technically overlooked....but now you got your shoutout lol :thumbsup:.

 Thanks to all for the assistance.

Edited by Champak
Posted (edited)

Odd thing happening that I'm not understanding. The two types of files I'm working with are jpg and mp4.

The comments are not inserted as expected. They are writing to the mp4 but not the jpg. When I manually put them in the property details by right clicking the file and then execute the following:

$File0 = $Path&"2019-06-13_191943_V.MP4"
ShellExecute($exifPath, ' -a -u -g1 "' & $File0 & '"', "", "OPEN", @SW_SHOW)

Under jpg files they are showing up under the tag "XP Comment" and under the the mp4 file they don't show at all....but in windows explorer I can see the comment. Any ideas?

1/ How do I output the shell printout to the console or a text file? I tried a good dozen variations, but nothing is working.

2/ Is there a "tags" tag? When I tried it, it said I had to specify a tag, not just use tag. I'm wondering if it is called something else.

 

Edited by Champak
  • Developers
Posted
  On 10/26/2024 at 10:09 PM, Champak said:

and under the the mp4 file they don't show at all

Expand  

...and why would they?   Please read what EXIF stands for and it probably will make sense! ;) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
ร—
ร—
  • Create New...