Запустите команду в CMD с C

#!/bin/bash

# Command to launch recursively the script
PROGNAME=$0
DIR=$1

# In case of $1 is not provided
if [ -z "$DIR" ]; then
	DIR="./"
fi 

# Store the list of directories in this folder
DIRS=$(ls --file-type $1 | grep -E '/$') 

#Go through all directories recursively
for d in $DIRS 
do 
	$PROGNAME $DIR$d
done

# List files and keep those which are not directories
# and display in the information in the correct format
# awk command allows you to make pattern manipulation
# md5sum computes the md5sum of the file
# cut select columns to keep
ls -lo $1 | grep -E "^\-" | awk -v DIR="$DIR" 'BEGIN{ORS=":"}{ print DIR $8":"$3;system("md5sum " DIR $8 " | cut -d\" \" -f1" ) }'
Reem Alsaidi