Archive for the Category: Command Scripts

Backup Oracle database with Windows Batch Script

This simple batch script creates a new folder based on the date and time and then executes a oracle database dump. REM Backup oracle database @echo Starting database backup REM get the current datestamp in the format year-month-day-hour-minute SET DATESTAMP=%date:~6,4%-%date:~3,2%-%date:~0,2%-%time:~0,2%-%time:~3,2% REM Create a new directory md “c:\backup\%DATESTAMP%” REM backup database REM Dont forget to change […]

Also posted in Programming Leave a comment

Create m3u playlist from directory list

This little command script iterates all sub folders to create an m3u playlist containing mp3 files. The m3u playlist can then be played using winamp. To create the command script, open a text editor and add the following line. dir *.mp3 /b /s > “playlist.m3u” Next save the file as create-playlist.cmd. To execute place the […]

Tagged , , , , Leave a comment