foxidrive wrote, on 10-01-2012 14:36:
> You can mostly use a for /f in do command and use the short filename with the utility and redirect it all into a file.
>
> The %%~snx is buggy but tell us what you need to do and maybe something will work.
I cannot get it to work properly:
I have a txt file i c:\temp\test.txt
If I add the properties "Title=Foo" and "Author=Bar" from the Explorer
Properties Menu, then I can see these properties if I add them to the
detailed view in Explorer.
However, if I try filedata.exe or fileinfo.exe from a Command Prompt I
cannot see this information:
C:\temp>"c:\Program Files\ClayUtils\FILEDATA.EXE" test.txt
"FILENAME","FULLPATH","DATESTAMP","TIMESTAMP","SIZE","BITS","INTNAME","ORIGNAME","DESCRIPTION","FVER
","PRODUCT","PVER","OWNER","COPYRIGHT"
"TEST.TXT","C:\TEMP\TEST.TXT",01/10/2012,15:17:38,0,16,,,,,,,,
C:\temp>"c:\Program Files\ClayUtils\FILEINFO.EXE" test.txt
File Name, Path: TEST.TXT C:\TEMP\TEST.TXT
Date, Time, Size: 01/10/2012 15:17:38 0
Empty file, cannot process
Unknown type
No other information is available
Basically, I would like to make some metadata available for some files
directly in Explorer rather than having a filelist with extra columns
with the extra data.
If I have a filelist like
Filename,Author,Subject,Keywords
file1.txt,Author1,Subject1,Keywords1
file2.txt,Author2,Subject2,Keywords2
.
.
.
I would like to add this information
for /F "tokens=1,2,3,4 delims=," %%a in (filelist.txt) do (
SetProperties author=%%b subject=%%c keyword=%%d %%a
)
When the data has been added I would like to be able to see it from the
detailed view in Explorer and from the command line.