Searching and Reporting to Log File
This will scan the Hard Drive and log any exe files. Good to use if you need to make sure banned programs are not being downloaded.
Dir E:\Data\*.exe /s >E:\Logs\Data.txt
Installation Logs
You can create an installation log during install of a program. This helps to debug any problems and also know registry entries etc.
"D:\setup.exe /L*v LOGFILE.NAME"
Setting File Types
This is especially useful if you need to change the file types on all machines to recognize the same Application to open.
Deletes current associations:
Assoc .jpg=
ftype Jpg=
Sets the name of the Association and lists the filetype.
Assoc .jpg=Jpg
ftype Jpg="C:\WINNT\System32\mspaint.exe" %1
*Note, these work perfectly is executed from the CMD line. However, when used in Batch Files, you need to add another % eg. ftype Jpg="C:\WINNT\System32\mspaint.exe" %%1.