I am sure ... one time there will be coming the moment, when you need the value of an environment variable to create a proper folder path for your music files or to fill a tag-field with some specific external data.
The current version of Mp3tag does not provide access to the system environment variables, so I have created a workaround to do so.
There are two command line utility scripts in the attached zip file:
- GetEnv.AppData.cmd
- GetEnv.Temp.cmd
Run these scripts from any folder.
Each script will create two files in the folder "%APPDATA%\Mp3tag\data\actions" with the names:
- GetEnv.AppData.mta, GetEnv.AppData.txt
- GetEnv.Temp.mta, GetEnv.Temp.txt
When running the "GetEnv.Temp.mta" action file from within Mp3tag against a selected music file, the action first reads the content of the data file "GetEnv.Temp.txt", then creates a new tag-field of name 'ENV_TEMP', which holds the folder path string to the current user's TEMP folder.
When running the "GetEnv.AppData.mta" action file from within Mp3tag against a selected music file, the action first reads the content of the data file "GetEnv.AppData.txt", then creates a new tag-field of name 'ENV_APPDATA', which holds the folder path string to the current user's APPDATA folder.
Hope it is useful, enjoy!
GetEnv.zip (1.47 KB)
DD.20110315.1624.CET
GetEnv.zip (1.47 KB)