Problem with Batch file

Strange Condition!

Page 1 of 1

7 Replies - 884 Views - Last Post: 03 April 2009 - 08:17 AM

#1 Nikhil_07n   User is offline

  • The cheese stands alone..
  • member icon

Reputation: 54
  • View blog
  • Posts: 2,490
  • Joined: 09-January 09

Problem with Batch file

Post icon  Posted 28 March 2009 - 10:20 AM

Basically, I'm trying to create a batch file which triggers a shutdown.

So, I'm using the following command for this purpose

shutdown -s -t 10 -c "Shut Shut Shut"



Whenever I try to create this file, My antivirus (KasperSky Internet Security 2009) detects it as a virus.

Till now, there is no problem as I think that it is normal!

BUT

when I modify the command and use time interval other than 10 like this,

shutdown -s -t 05 -c "Shut Shut Shut"



the antivirus does not detect anything.

I just want to ask, WTF is wrong with him??(reason behind this)

This post has been edited by Nikhil_07n: 28 March 2009 - 10:20 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Problem with Batch file

#2 Pwn   User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 458
  • Joined: 25-November 07

Re: Problem with Batch file

Posted 28 March 2009 - 11:11 AM

Just a wild guess, but it could be that a lot of viruses are known to initiate a shutdown in 10 seconds. Maybe you should submit a problem ticket to Kapersky to see if they can answer that question.
Was This Post Helpful? 0
  • +
  • -

#3 lockdown   User is offline

  • D.I.C Regular
  • member icon

Reputation: 6
  • View blog
  • Posts: 394
  • Joined: 29-September 07

Re: Problem with Batch file

Posted 29 March 2009 - 08:32 AM

Why it is viewing it as a virus with regards to the time frame is somewhat a mystery. Your code looks fine for the shutdown command and all the switchs are in the correct order.

What are you using the file for?
Were are you storing it?

Those might give me a better idea of possible reasons for the antivirus picking it up.
Was This Post Helpful? 0
  • +
  • -

#4 Nikhil_07n   User is offline

  • The cheese stands alone..
  • member icon

Reputation: 54
  • View blog
  • Posts: 2,490
  • Joined: 09-January 09

Re: Problem with Batch file

Posted 29 March 2009 - 09:52 AM

Its just a little prank created for 1st April!

It doesnt matter where the file is being stored, whenever i try to run/edit it........BANG!

And one more strange problem

Whenever i write same command like this(without any comments(-c))

shutdown -s -t 10




Nothing happens! :D

Well, you may check out this whole prank HERE.(remember the shutdown -a command and be quick at that :P :P )

Make sure you remove the startup entry too!

Beginners:Please dont try that!

Here are two screenshots

Attached Image

Attached Image

This post has been edited by Nikhil_07n: 29 March 2009 - 09:54 AM

Was This Post Helpful? 0
  • +
  • -

#5 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: Problem with Batch file

Posted 31 March 2009 - 06:59 PM

View PostNikhil_07n, on 28 Mar, 2009 - 11:20 AM, said:

Whenever I try to create this file, My antivirus (KasperSky Internet Security 2009) detects it as a virus.


Is there a configuration setting in the software to detect for a shutdown that was not initiated by the user?
Was This Post Helpful? 0
  • +
  • -

#6 Nikhil_07n   User is offline

  • The cheese stands alone..
  • member icon

Reputation: 54
  • View blog
  • Posts: 2,490
  • Joined: 09-January 09

Re: Problem with Batch file

Posted 31 March 2009 - 07:31 PM

that does'nt bother me, the point is that when I change the countdown timer why does'nt it detects that file!

This post has been edited by Nikhil_07n: 31 March 2009 - 07:36 PM

Was This Post Helpful? 0
  • +
  • -

#7 ccubed   User is offline

  • It's That Guy
  • member icon

Reputation: 165
  • View blog
  • Posts: 1,416
  • Joined: 13-June 08

Re: Problem with Batch file

Posted 02 April 2009 - 09:29 AM

I use to have a problem like this with Javascript and VBScript files. For some reason, the anti-virus i had ten (mcaffe) saw them as threats and locked them down. Nevermind I made them. Anyways, sometimes they just do weird things like that.

It just sounds like your anti-virus program is noticing that your bat script seems to look like some kind of known virus. So perhaps the timing is usually used in some kind of virus or malware script.
Was This Post Helpful? 0
  • +
  • -

#8 Nikhil_07n   User is offline

  • The cheese stands alone..
  • member icon

Reputation: 54
  • View blog
  • Posts: 2,490
  • Joined: 09-January 09

Re: Problem with Batch file

Posted 03 April 2009 - 08:17 AM

View Postccubed, on 2 Apr, 2009 - 08:59 PM, said:

I use to have a problem like this with Javascript and VBScript files. For some reason, the anti-virus i had ten (mcaffe) saw them as threats and locked them down. Nevermind I made them. Anyways, sometimes they just do weird things like that.

It just sounds like your anti-virus program is noticing that your bat script seems to look like some kind of known virus. So perhaps the timing is usually used in some kind of virus or malware script.


I think you are right.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1