Exe wont work

Convert your BATch files into EXEcutable format in one click.
Post Reply
Posts: 1
Joined: Tue Jul 21, 2009 4:46 pm

Exe wont work

Post by Battlemage »

Hello i use the Version
My Bat File works perfect, but after i compile it to a exe File, my Script wont run anymore.
After start the Exe File i see very Short the Dos Window and than its gone.

Here is my Bat Code

Code: Select all

@echo off
if exist c:\Windows\System32\Drivers\Etc\hosts goto ok
echo Datei nicht gefunden!
goto END

echo --- Seitensperre fuer Matthias.  --
attrib -r c:\Windows\System32\Drivers\Etc\hosts
Set /P Sperre=Gib die Seite zum Sperren an!

echo	%Sperre% >> c:\Windows\System32\Drivers\Etc\hosts

attrib +r c:\Windows\System32\Drivers\Etc\hosts


With this bat(exe) i will add short an manualy Adresses to the hosts file to stop browsing them.

Sorry for my bad english.
Post Reply