Hidden features of Windows batch files

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

What are some of the lesser know, but important and useful features of Windows batch files?

Guidelines:

    • One feature per answer
    • Give both a short description of the feature and an example , not just a link to documentation
    • Limit answers to native funtionality , i.e., does not require additional software, like the Windows Resource Kit

Clarification: We refer here to scripts that are processed by cmd.exe, which is the default on WinNT variants.

http://stackoverflow.com/questions/148968/windows-batch-files-bat-vs-cmd http://stackoverflow.com/questions/148968/windows-batch-files-bat-vs-cmd

Answers

Line continuation:

call C:WINDOWSsystem32
tbackup.exe ^
    backup ^
    /V:yes ^
    /R:no ^
    /RS:no ^
    /HC:off ^
    /M normal ^
    /L:s ^
    @daily.bks ^
    /F daily.bkf

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/245395/hidden-features-of-windows-batch-files

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils