Cleaning up desktop clutter the batch file way
Posted by trm96 | Filed under How-to, Windows
As many of you may know I love batch files Well I thought many people have an abundance of desktop clutter. The qustion is how to cut through the clutter and move only certain types of files to other locations and do it without installing any software? Well after a few hours I have solved the problem, using nothing else but a batch file. Before you ask, a batch file is a plain text file that allows you to run DOS style commands without having to type out commands multiple times. The following batch file will move any files with the .jpg, .jpeg, and .png file extensions to a folder called “Pic temp” in the folder “wow temp64” on your desktop in Vista. Read the rest of this article »
Tags: batch file, DOS, file copy, jpeg, jpg, png, Windows
Writing a self deleting batch file
Posted by trm96 | Filed under How-to, MS DOS/FreeDOS
Some people laugh at me when I tell them I love to write batch files.
Today i found myself in kinda a pickle, I wanted to write a batch file that would delete itself as well as any files in the directory it was located in. So I turned to my good friend Google, not too much luck… Lucky I can usually figure this stuff out. Here’s what worked for me…
The solution:
@echo off
cls
del. /q
the del. deletes everything in the working directory and /q switch makes it so you don’t have to confirm every file delete (quite mode).
I hope this info was helpful!
Tags: batch file, Windows