Find 2 types of file without repeating the full directory path

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
samz
Posts: 7
Joined: Sat Jul 29, 2023 9:38 am

Find 2 types of file without repeating the full directory path

Post by samz »

Hello,

Is there a way to search for 2 types of files (.kt and .xml) in a directory, without repeating the full directory path: C:\Users\sam\AndroidStudioProjects\JetNote-master\

Code: Select all

C:\Users\sam\AndroidStudioProjects\JetNote-master\*.kt|C:\Users\sam\AndroidStudioProjects\JetNote-master\*.xml
Regards,
Sam
Attachments
20230729-205112.PNG
20230729-205112.PNG (88.03 KiB) Viewed 919 times
void
Developer
Posts: 16840
Joined: Fri Oct 16, 2009 11:31 pm

Re: Find 2 types of file without repeating the full directory path

Post by void »

C:\Users\sam\AndroidStudioProjects\JetNote-master\ *.kt|*.xml

-or-

C:\Users\sam\AndroidStudioProjects\JetNote-master\ ext:kt;xml
samz
Posts: 7
Joined: Sat Jul 29, 2023 9:38 am

Re: Find 2 types of file without repeating the full directory path

Post by samz »

Problem solved. Thank you and happy coding :)
Post Reply