Reverse command prompt action

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Peterr
Posts: 1
Joined: 04 Feb 2010 07:16

Reverse command prompt action

#1 Post by Peterr » 04 Feb 2010 07:21

Hi everone,

"A friend of mine :p" just used a crack for adobe illustrator CS4, but would like to reverse it. The CMD code is:
FIND /C /I "activate.adobe.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1 activate.adobe.com>>%WINDIR%\system32\drivers\etc\hosts

I have no experience whatsoever in command prompt programming, could anyone please give advise?


Help is appreciated, thanks!

!k
Expert
Posts: 378
Joined: 17 Oct 2009 08:30
Location: Russia

Re: Reverse command prompt action

#2 Post by !k » 04 Feb 2010 07:50

Run notepad %WINDIR%\system32\drivers\etc\hosts
erase string 127.0.0.1 activate.adobe.com and save change

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Reverse command prompt action

#3 Post by aGerman » 04 Feb 2010 09:09

Peterr

Additional to !k's reply - the default line should be

Code: Select all

127.0.0.1       localhost


Regards
aGerman

Post Reply