Alternatively, you can launch Run in the start menu. Select the View tab and, in Advanced settings, select Show hidden files, folders, and drives and OK.
Select View > Options > Change folder and search options.In order to locate the com.mojang folder in Windows, You will need to have Hidden items set to true by selecting the Checkbox as shown below. To access this folder, you can use the following solution to locate within Windows 10 OS. When Minecraft is installed to your computer, there is a folder directory called com.mojang that is generated in the AppData folder.