Georgi Yanev's blogGeorgi Yanev

Batch files

~ year: 2000 | Georgi's age: 15Unedited things the way they were in the late 90s and early 2000s
Some of the first batch files I wrote.
Desktop Cleaner - would simply back up to a separate directory and then delete the originals from the desktop.
@ECHO OFF 
echo This program is typical
echo Desktop Cleaner...
cd c:\windows\desktop
md oldlinks
pause
copy c:\windows\desktop\*.lnk c:\windows\desktop\oldlinks\*.lnk
pause
del c:\windows\desktop\*.lnk
echo DONE!
pause
cls
TextPad - write down a note and save to a file in my documents.
@ECHO OFF 
echo This program helps you make your own text files,
echo it will save the file in your "c:\my documents" directory as "yourfile.txt"
echo To end the program press [Ctrl+Z] and then ENTER.
copy con c:\mydocu~1\yourfile.txt
FileBackuper - copy over files to a backup directory.
@ECHO OFF 
echo This program will back up files...
pause
cls
copy c:\mydocu~1\*.* d:\backup~1\*.*
echo /s
echo Ok, it's done now..
Go back to the homepage