So i've got multiple exercises to do in I have absolutely no idea how to make this script :
The script must create a file named files.txt and display its contents. The file must contain all the names (only) in the %windir%\system32 directory that meet the following conditions: - the file name is 4 letters and its extension is .com (ex: mode.com) - the 2nd letter of the file name is "i" and its extension is .dll (ex: windows.dll)
Only thing I have right now is :
dir /b %windir%\system32 > files.txt
which works but I have no idea how to add the conditions.