Solving development problems  |  About this blog

Archive for the ‘dos command’ tag

How to delete all files and subdirectories recursively from one directory using DOS command?

Use DOS command to delete all files and subdirectories from specific folder (directory) – you must not be in this folder when executing this command:

rmdir /s /q "c:\Temp\Your-Dir-With-Subdirs"
Create this directory (folder) again because it will also be deleted
md "c:\Temp\Your-Dir-With-Subdirs"

Encoding WMP video from DOS (batch) using Expression Encoder

“c:\Program Files (x86)\Microsoft Expression\Encoder 2\Encoder.exe” /Source “d:\Originals\SomeOriginalVideo.wmv” /Target “d:\Encoded\EncodedVideo.wmv” /Preset “d:\Expression\Encoder\Settings\MyVideoPreset.xml”

Written by Avivo

June 22nd, 2009 at 2:52 pm