I’ve a folder
C:UsersuserDesktophtmlreports and inside there are different folders but I want to delete only folders containing text say
192 in their names like
abc192 xyz192 pqr192xyz
apart from these there are also other folders.
To delete only matching folders with text
192, I tried following –
rd /s /q C:UsersuserDesktophtmlreports*192*
But it results into
The filename, directory name, or volume label syntax is incorrect.
Please suggest what is correct regex which will help to achieve this.
NOTE This is for Windows environment