Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

Exe wont work

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
Battlemage



Joined: 21 Jul 2009
Posts: 1

PostPosted: Tue Jul 21, 2009 4:50 pm    Post subject: Exe wont work Reply with quote

Hello i use the Version 3.2.1.0
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:


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

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

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

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

:END



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

Sorry for my bad english.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group