List folders and files

 

List folders and files:

dir ..\myfolder /b /s /o:gn>list.txt

  

When you do not want to list the folders, only the files in the subfolders, use /A-D switch like this:

dir ..\myfolder /b /s /A-D /o:gn>list.txt

 

How to list open ports and application using them in Windows

  netstat -abn or netstat -a -n -p tcp -o

Mais vistos