Summary: This batch file will make it a bit easier to fix your ‘hosts’ file.
Requirements:
- Windows 2000 / XP / Vista
Code:
@echo off
cls
echo Fix the Host File
echo By Blake Johnson
echo http://www.blakeanthonyjohnson.com
echo.
echo.
echo Are you blocked from a specific web site? Find the domain name and
echo if it is in the list, remove it. Problem should then be solved.
echo.
pause
echo.
echo Remove Read-only and System attributes from the Hosts file...
attrib -s -r %windir%system32driversetchosts
echo Done.
echo.
echo Open the Hosts file for editing...
notepad %windir%system32driversetchosts
echo Done.
echo.
echo Apply the Read-only and System attributes to the Hosts file...
attrib +s +r %windir%system32driversetchosts
echo Done.
echo.
echo.
echo Assuming you made the changes you intended to make, you should
echo be good to go.
echo.
pause
Summary: Tired of using the command line switches to convert a song to the Wavpack format? This will make your life a bit easier.
Requirements:
Code:
@echo off
::
::Set wavpackexe to the path of the WavPack exe on your system.
::
set wavpackexe="C:Program FilesWavPackwavpack.exe"
::
::Other Variables
::
set target=
echo -------------------------
echo WavPack Frontend v0.8
echo -------------------------
echo By Blake Johnson
if exist %2 goto alert2files
if exist %1 goto pass2
goto pass1
:pass1
echo.
echo.
echo First of all, where is your file located?
echo (Feel free to drag and drop it in this box.)
echo.
Set /p source=Location of file:
cls
goto menu
:alert2files
echo.
echo.
echo You have selected more than one file, only one file will be used.
echo File being used: %1
goto pass2
:pass2
echo.
echo.
set source=%1
goto menu
:menu
echo.
echo.
echo Here are some more options.
echo.
echo 1. Choose other destination.
echo 2. Tag the file.
echo 3. Convert to WavPack.
echo.
echo 4. Exit.
set /p option=What option do you want?
cls
if "%option%"=="1" goto cngtarget
if "%option%"=="2" goto tag
if "%option%"=="3" goto convert2wv
if "%option%"=="4" goto exit
cls
echo %option%
echo.
echo. You did not choose a valid option.
echo. Please try again.
goto menu
:cngtarget
echo.
echo.
echo Choose a new destination. (Physical path to file only.)
echo USE QUOTES!!!
echo.
echo To cancel, just press enter.
echo.
echo.
set /p target=Destination:
cls
goto menu
:tag
echo.
echo.
echo Enter the following information for tagging.
echo If you leave one blank, it will not exist as a tag.
echo.
set /p artist=Artist:
set /p title=Title:
set /p album=Album:
set /p year=Year:
set /p track=Track #:
set /p genre=Genre:
echo.
echo.
echo If the following is not correct, exit the batch file and try again.
echo.
if not "%artist%"=="" echo Artist: %artist%
if not "%title%"=="" echo Title: %title%
if not "%album%"=="" echo Album: %album%
if not "%year%"=="" echo Year: %year%
if not "%track%"=="" echo Track: %track%
if not "%genre%"=="" echo Genre: %genre%
echo.
echo.
pause
cls
goto menu
:convert2wv
echo.
echo.
%wavpackexe% -w "Artist=%artist%" -w "Title=%title%" -w "Album=%album%" -w "Year=%year%" -w "Track=%track%" -w "Genre=%genre%" -h %source% %target%
:exit
exit
Summary: Have a process that won’t die? Maybe this will help remedy the situation. It does not always works, but it’s worth a shot if the Windows Task Manager fails to deliver.
Requirements:
Code:
@echo off
echo ---------------------------
echo The Process Killer v0.7
echo ---------------------------
echo By Blake Johnson
echo.
echo.
:home
echo Type 'v' to view open processes and their PIDs, or type a PID to continue.
echo.
set /p command=Command or PID:
if "%command%"=="v" goto viewpids
if not "%command%"=="v" goto kill
:viewpids
tasklist | more
echo - - - - - -
echo.
goto home
:kill
ntsd -p %command% -c "q"
pause
Summary: Image Unloader is a simple batch file for unloading images from a UMS digital camera to the “My Pictures” folder. It creates a folder of the current data, and all the images are unloaded in there. After they are copied, the images on the camera are removed.
Requirements:
Code:
@echo off
set cameradir=E:DCIM101MSDCF
set basedestdir=C:Documents and SettingsUSERPROFILEHEREMy DocumentsMy Pictures
set wazdate=%DATE%
set udate=%wazdate:~10,4%-%wazdate:~4,2%-%wazdate:~7,2%
mkdir "%basedestdir%%udate%"
echo Moving images from your camera to your hard drive....
copy /V "%cameradir%*.*" "%basedestdir%%udate%"
del /Q "%cameradir%*.*"
pause
Warning: As of this version, this script could potentially cause image loss if the copy command fails to complete properly. If that happens, there are a few free recovery programs out there that will recover those photos, just as long as they have not been overwritten by something else.
Simple Scripts to Make Life Easier