HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: orangefx on 2017-11-21 00:03:04

Title: foobar2000 remove write protection/set write protection command?
Post by: orangefx on 2017-11-21 00:03:04
hi there,
i have my library write protected. changing files in foobar wont work. i am looking for a command to remove, and after applied changes reinstate write protection of marked files.
florians old foo run component  could be doing this. but i did not manage to get it to work with attrib.exe -r/+r.
any ideas?
Title: Re: foobar2000 remove write protection/set write protection command?
Post by: Pollux88 on 2017-11-21 14:43:52
cmd /c attrib -r "%_path%" /s
seems to work fine for me
also
cmd /c attrib -r "$directory_path(%path%)\*.*" /d /s
for the whole directory
Not sure about what to do to reapply write protection and what one might need it for, though.
Title: Re: foobar2000 remove write protection/set write protection command?
Post by: orangefx on 2017-11-22 22:16:19
thanx, so i need the "obsolete" foo_run 0.3.7 or how do i use your lines?
Title: Re: foobar2000 remove write protection/set write protection command?
Post by: orangefx on 2017-11-28 16:40:15
the answer to myself is yes: foo_run_0.3.7.dll still works. the lines either remove protection for one or first selected file or all files in folder.
write protectection set would be: +r instead of -r
but how is the command line for marked files in different folders?  please?
Title: Re: foobar2000 remove write protection/set write protection command?
Post by: orangefx on 2017-11-29 23:10:09
what i mean is in a playlist there are files from different folders, all write protected. lets say i want to apply replaygain. it wouldnt work. so i ask for the line to put in foo_run to remove rm status from marked files in the playlist in foobar.
Title: Re: foobar2000 remove write protection/set write protection command?
Post by: Pollux88 on 2017-11-30 17:21:45
I wouldn't know how to approach this, as the commands rely on extracting file path, and I don't believe it's possible to get multiple paths at once, at least with default components.
Also, you're saying that you can't set your own commands in newer versions of foo_run?
Title: Re: foobar2000 remove write protection/set write protection command?
Post by: orangefx on 2017-11-30 20:15:30
there is two different versions of different authors. foo_run 0.3.7 is "obsolete", meant for foobar 0.9. it still works and i can use your command lines. but it is not really helpfull to do it one by one, i rather open all files in mp3tag, there it is easier to set rm for "all marked files".
the newer foo run is very different and i dont see how to use it for this "indication".
thanx for looking into it.