dos

Open command prompt and execute some commands

Tag(s):

START cmd /k "prompt --=[$D $T]=--$_$L$P$G&& cd C:\temp\"

Clean song filename

Tag(s):

:: Description: Clean song name from an input file to <Title>-<Year>-<Artists>
:: Require: sed.exe
:: Author: Xuan Ngo
:: Version: 1.0
 
@ECHO OFF
 

Split long command over multiple lines

Tag(s):

Use caret(^). Note: Don't use space at the beginning of the appended line.

echo Hello^
World!

http://stackoverflow.com/questions/69068/long-commands-split-over-multiple-lines-in-vista-dos-batch-bat-file/21000752

Delete the oldest file using DIR /OD and EXIT

Tag(s):

The idea is to list all files by oldest date(DIR /OD) and then break out of the FOR loop on the 1st iteration using EXIT /B.

Subscribe to RSS - dos