CDRInfo Forum CDRInfo Forum

Forums  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

What does this .bat do?   Logged in as: Guest
Viewers: 1133 You can click here to see Today's Posts | Most Active Topics | Posts Since Last Visit
  Printable Version
All Forums >> [Other] >> Free Discussion >> What does this .bat do? Page: [1]
Login
Message << Older Topic   Newer Topic >>
What does this .bat do? - 4/25/2008 12:37:25 AM   
killalot57


Posts: 206
Joined: 6/6/2007
From: Ava, NY
Status: offline
I found a batch command file that said the following...

@echo off
:df
del %1
if exist %1 goto df

What does this mean? what does df represent?
P.S. I deleted it so I hope it wasn't important, I assume it's malware.
Post #: 1
RE: What does this .bat do? - 4/25/2008 8:15:17 AM   
SithTracy


Posts: 1670
Status: offline
Not sure what the batch file is named on your PC, but for the sake of explanation I will say it is called "delme.bat".  If you were to run "delme.bat" and after the command type a file name it would delete that file name... for example:

delme C:\Windows\Notepad.exe

The first entry after the space in the batch file at a command prompt becomes the "%1" variable.  If it is unable to delete the file, the if/exist will loop the batch be a goto label (in this case :df) until it can.

(in reply to killalot57)
Post #: 2
RE: What does this .bat do? - 4/25/2008 3:21:15 PM   
killalot57


Posts: 206
Joined: 6/6/2007
From: Ava, NY
Status: offline
Oh.... Anyway It was in...
C:\Documents and Settings\MyAccount\Local Settings\Temp

And I think It was called recoverfile.bat or something like that, and It was detected by "avg anti-spyware" and "comodo.firewall" as a virus or something, actually avg stated that it specifically wasn't a virus, but that It could be used malicously by a hacker.... something like that...

(in reply to SithTracy)
Post #: 3
RE: What does this .bat do? - 4/25/2008 8:01:31 PM   
SithTracy


Posts: 1670
Status: offline
quote:

ORIGINAL: killalot57

...but that It could be used malicously by a hacker.... something like that...


Yep, it sure could.

(in reply to killalot57)
Post #: 4
RE: What does this .bat do? - 4/25/2008 8:08:31 PM   
MP3Mogul


Posts: 5743
Joined: 4/11/2002
From: Retired Moderator
Status: offline
It could also be for an update of ... say an antivirus program, ... or an anti spyware program, it could be alot of things.



_____________________________



LG GSA H22L Firm 1.02
Samsung SH-203N Firm SB01
LiteOn SOHD-16P9S Firm FS0D

(in reply to SithTracy)
Post #: 5
RE: What does this .bat do? - 4/25/2008 10:37:19 PM   
killalot57


Posts: 206
Joined: 6/6/2007
From: Ava, NY
Status: offline
Well, then I guess it's best deleted to be better safe than sorry...

(in reply to MP3Mogul)
Post #: 6
Page:   [1]
All Forums >> [Other] >> Free Discussion >> What does this .bat do? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.063