Jump to content

Set file properties


Recommended Posts

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

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Link to comment
Share on other sites

  • Developers

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.
  :)

Link to comment
Share on other sites

5 hours ago, Champak said:

that's only for the older windows.

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

Link to comment
Share on other sites

8 hours ago, 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?

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

 

FileProperty.jpg

Link to comment
Share on other sites

11 hours ago, SOLVE-SMART said:

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

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

 

1 hour ago, argumentum said:

already told you in my previous post.

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

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.

Link to comment
Share on other sites

23 minutes ago, Champak said:

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

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

23 minutes ago, Champak said:

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

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 😿

23 minutes ago, Champak said:

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

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.

23 minutes ago, Champak said:

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

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

Link to comment
Share on other sites

2 hours ago, Champak said:
13 hours ago, SOLVE-SMART said:

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

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

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

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Link to comment
Share on other sites

On 10/25/2024 at 1: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 😿

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers
9 hours ago, Champak said:

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

...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.
  :)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...