1. Find a file on your hard disk
dir filename /s
2. Find a file on your hard disk without all the directory info goo -
dir filename /s/b
3. Create a list of files, say your MP3s to share with a friend?
dir *.mp3 /b > filelist.txt
3. Find a directory -
dir dirname /s /ad
4. Move between directories easily
C:\Documents and Settings\Waqas>pushd .
C:\Documents and Settings\Waqas>cd \
C:\>popd
C:\Documents and Settings\Waqas>
5. A better prompt for PushD and PopD via
Craig Andrea.
6. Hit Tab for directory/filename compleition
7. Press F7 for a previous command list. User Cursor keys to select the command you need.
8. View all environment variables
SET
9. View only system variables that start with W
Set W
10. View a particular env. variable
ECHO %WINDIR%
11. Find what process has opened what port
netstat -noa
12. Widen your command prompt.
mode 120,100
13. View your TCP/IP settings.
netsh interface ip show config
14. Weird looking colors
color 8f
15. Find a string in a list of files, for example "Foo" in all .cs files in your project tree:
findstr /i /s "foo" *.cs
16. refresh the netbios nametables:
nbtstat -R
69933536-3a4e-4378-b3de-47de240bbf63|0|.0