विंडोज़ के छुपे हुए DOS कमांड्स: एडवांस यूज़र्स के लिए संपूर्ण गाइड

आज के आधुनिक GUI युग में भी, Command Prompt (DOS) की शक्ति अपरिमित है। विंडोज़ 10 और 11 में कुछ ऐसे गुप्त कमांड्स हैं जो आपकी productivity को कई गुना बढ़ा सकते हैं। आइए जानते हैं 20 ऐसे advanced DOS commands के बारे में जो हर tech-savvy यूज़र को पता होने चाहिए।

1. FORFILES – फ़ाइलों को बल्क में प्रोसेस करना

forfiles /p C:\temp /m *.txt /c "cmd /c echo @fname was modified on @fdate"

यह command C:\temp फ़ोल्डर में सभी .txt files को scan करती है और प्रत्येक file का नाम और modification date प्रिंट करती है। /p parameter path specify करता है, /m mask pattern है, और /c actual command है जो execute होगी।

2. TYPE NUL > – खाली फ़ाइल बनाना

type nul > newfile.txt

type nul null content को output करता है, और > redirection operator इसे newfile.txt में store कर देता है, जिससे एक completely empty file बनती है।

3. ROBOCOPY – Advanced File Copying

robocopy C:\source D:\backup /MIR /R:3 /W:10 /LOG:backup.log

/MIR mirror copy करता है (destination को source के exact replica बनाता है), /R:3 failed copies के लिए 3 retries, /W:10 प्रत्येक retry के बीच 10 seconds wait, और /LOG operation का detailed log बनाता है।

4. WMIC – Windows Management Interface

wmic cpu get name,numberofcores,maxclockspeed

यह command आपके CPU की detailed information देती है – processor name, cores की संख्या, और maximum clock speed। WMIC के through आप hardware और software दोनों की comprehensive information प्राप्त कर सकते हैं।

5. TASKKILL – Processes को Force Stop करना

taskkill /f /im notepad.exe

/f parameter forcefully kill करता है, /im image name specify करता है। आप process ID के साथ भी use कर सकते हैं: taskkill /f /pid 1234

6. CIPHER – Disk Space को Securely Wipe करना

cipher /w:C:\

यह command C drive की free space को तीन passes में overwrite करती है – zeros, ones, और random numbers से। इससे deleted files को recover करना nearly impossible हो जाता है।

7. SFC /SCANNOW – System File Checker

sfc /scannow

System File Checker Windows की core files को scan करता है और corrupted files को automatically repair करता है। यह administrator privileges में run करना जरूरी है।

8. DISM – System Image Management

dism /online /cleanup-image /restorehealth

DISM (Deployment Image Servicing and Management) system image को repair करता है। यह SFC से भी powerful है और Windows Update components को भी fix कर सकता है।

9. NETSH – Network Configuration का Master

netsh wlan show profile name="WiFi-Name" key=clear

यह command saved WiFi password को plain text में show करती है। NETSH के through आप firewall, IP configuration, और network adapters को भी manage कर सकते हैं।

10. FINDSTR – Advanced Text Search

findstr /r /c:"^[0-9]*$" data.txt

यह command regular expressions का use करके data.txt में केवल numbers वाली lines को find करती है। /r regex enable करता है, /c exact string search के लिए है।

11. ATTRIB – File Attributes का Control

attrib +h +s secretfolder

यह command folder को hidden (+h) और system (+s) बनाती है। -h और -s से attributes remove कर सकते हैं। +r read-only बनाने के लिए use करते हैं।

12. SUBST – Virtual Drive Mapping

subst Z: C:\Users\Username\Documents\ProjectFolder\SubFolder

यह deep nested folder को Z drive के रूप में map करती है। बाद में आप सिर्फ Z: type करके directly उस location पर पहुँच सकते हैं।

13. MKLINK – Symbolic Links बनाना

mklink /d C:\Shortcut C:\Original\Folder

/d directory symbolic link बनाता है। यह actual shortcuts से different है – system level पर real path की तरह behave करता है। Files के लिए सिर्फ mklink use करें।

14. TAKEOWN & ICACLS – File Ownership और Permissions (Protected files पर control पाना)

takeown /f C:\Windows\System32\file.dll icacls C:\Windows\System32\file.dll /grant %username%:F

TAKEOWN file की ownership आपको transfer करती है, ICACLS detailed permissions set करती है। /grant permission देने के लिए, :F full control के लिए use करते हैं।

15. TREE – Directory Structure Visualization

tree C:\MyProject /f /a > project-structure.txt

/f files भी show करता है (default में सिर्फ folders), /a ASCII characters use करता है compatibility के लिए। Output को file में redirect करके documentation के लिए use कर सकते हैं।

16. WHOAMI – Current User और Privileges

whoami /priv /groups

/priv current user के privileges show करता है, /groups user के member groups display करता है। Security troubleshooting के लिए extremely useful है।

बोनस टिप्स:

Command Chaining करना:

dir C:\ && echo "Success" || echo "Failed"

Multiple Commands एक साथ:

cd C:\temp & dir & pause

Output को दूसरी Command में Pass करना:

dir | findstr ".txt" | more

ये commands Windows के command prompt की असली शक्ति को demonstrate करती हैं। Regular practice से ये आपकी daily workflow का हिस्सा बन सकती हैं और system administration tasks को significantly आसान बना सकती हैं।

सुरक्षा नोट: कुछ commands (जैसे TAKEOWN, CIPHER) system को permanently affect कर सकती हैं। हमेशा test environment में try करें और important data का backup रखें।

प्रत्येक command में अनगिनत parameters और options हैं। command /? type करके किसी भी command की complete help देख सकते हैं।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top