1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

batch script ??

Discussion in 'Windows' started by Bjam, Dec 17, 2008.

  1. Bjam

    Bjam New Member

    Joined:
    Nov 11, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Dear All,
    Am not sure if am posting in the right forum. If false, plz guide me.

    I want to make a batch file that do the following:
    1. End a process (taskmanager), the process is wscript.exe
    2. Change attribute (unhide) for a .inf file, autorun.inf which is on C:
    3. delete the .inf file

    Any help guys ???
    Ill be greatfulllll.

    Best regards.
     
  2. neo_vi

    neo_vi New Member

    Joined:
    Feb 1, 2008
    Messages:
    722
    Likes Received:
    15
    Trophy Points:
    0
    Occupation:
    Software engineer
    Location:
    Earth
    Home Page:
    Read this. Destroy virus from hard drive in 15 seconds
    U can find the answer for 2nd and 3rd question.
    for the 1st question the command is
    Code:
    taskkill
    Jus go to the task manager and enable the PID for the process. and look for the wscript.exe's PID.
    and use this code
    Code:
    taskkill /PID <PID number>
    Post ur doubts after trying this.
     
  3. oyeLucky

    oyeLucky New Member

    Joined:
    Dec 27, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    just open the notepad and type the following commands:
    Code:
    taskkill /f /im wscript.exe
    attrib -r -h -s c:\autorun.inf
    del autorun.inf
    
    Save the file with extension .bat for example "heal.bat" or you can also save it with .cmd extension also for example "heal.cmd".
    Now just double click the file and the work will be done.
     

Share This Page