डीआईआर * क्यों * सभी फाइलों और फ़ोल्डरों की सूची है?

विषयसूची:

डीआईआर * क्यों * सभी फाइलों और फ़ोल्डरों की सूची है?
डीआईआर * क्यों * सभी फाइलों और फ़ोल्डरों की सूची है?

वीडियो: डीआईआर * क्यों * सभी फाइलों और फ़ोल्डरों की सूची है?

वीडियो: डीआईआर * क्यों * सभी फाइलों और फ़ोल्डरों की सूची है?
वीडियो: Aankh se chhalka Anshu[DjRemix] Hindi Dj song Viral Love Dholki Mix Dj Song Remix By Dj Vijay Style, - YouTube 2024, अप्रैल
Anonim
कभी-कभी आप आदेश चलाते समय अप्रत्याशित परिणामों के साथ समाप्त हो सकते हैं, इसलिए परिणामों के पीछे "क्यों" सीखना बहुत दिलचस्प हो सकता है। इस बात को ध्यान में रखते हुए, आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवाल का जवाब है।
कभी-कभी आप आदेश चलाते समय अप्रत्याशित परिणामों के साथ समाप्त हो सकते हैं, इसलिए परिणामों के पीछे "क्यों" सीखना बहुत दिलचस्प हो सकता है। इस बात को ध्यान में रखते हुए, आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवाल का जवाब है।

आज का प्रश्न और उत्तर सत्र हमारे पास सुपरयूसर की सौजन्य है - स्टैक एक्सचेंज का एक उपविभाग, क्यू एंड ए वेब साइट्स का एक समुदाय संचालित समूह।

प्रश्न

सुपर यूज़र रीडर लुयू विंन फुक जानना चाहता है कि क्यों डीआईआर *। * सभी फाइलों और फ़ोल्डरों को सूचीबद्ध करता है:

When I run the dir *.* command, it produces unexpected results. Even files and folders without any dot in the name are listed. For example:

Why is that? Is there any way to only list files with a dot?
Why is that? Is there any way to only list files with a dot?

डीआईआर *। * सभी फाइलों और फ़ोल्डर्स को क्यों सूचीबद्ध करता है?

उत्तर

सुपरयूसर योगदानकर्ता फ्लीट कमांड का जवाब हमारे लिए है:

The DIR command comes from a time when:

  • A period (.) was not allowed as a character in file or folder names
  • File and folder names were restricted to 8 characters for names and 3 characters for extensions

Therefore, by that standard, *.* meant whatever the name and whatever the extension. It did not mean a string containing a “.”, which may or may not have characters before or after the “.”.

Microsoft’s policy is preserving backward compatibility, so that interpretation of *.* is retained. But in Windows PowerShell, *.* means a string containing a “.”, which may or may not have characters before or after the “.”.

स्पष्टीकरण में जोड़ने के लिए कुछ है? टिप्पणियों में विचार व्यक्त करो। अन्य तकनीक-समझदार स्टैक एक्सचेंज उपयोगकर्ताओं से अधिक उत्तरों पढ़ना चाहते हैं? यहां पूर्ण चर्चा धागा देखें।

सिफारिश की: