Skip to content

wmic command incorrect #2

@amckenna

Description

@amckenna

In the cli_for_tools file there is a command for calling wmic datafile on a list of binaries. This command needs to be changed from:

FOR /F "usebackq delims=" %x IN (C:\data\file_list.txt) do wmic datafile get Name, Description, Manufacturer where name="%x" >> "C:\data\metadata_info.txt"

to (swap the position of the get part of the statement):

FOR /F "usebackq delims=" %x IN (C:\data\file_list.txt) do wmic datafile where name="%x" get Name, Description, Manufacturer >> "C:\data\metadata_info.txt"

however this command will still fail because the directory path needs to have all of the backslashes escaped. Not sure if you want to do that via inline DOS command line magic or in the python script that grabs the directory paths and puts them in the file_list.txt file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions