Question:
What is an MSDOS batch file? What does it do?
The Crow
2008-06-14 20:19:44 UTC
I was recently looking through my C drive (I dunno why) and I found an MSDOS batch file called smp.bat, and couldn't open it and don't know what it is. Can you tell me? I recently had a zlob trojan and I wanna know that this file isn't part of that, cuz the 'created' date is about the right time frame.
Five answers:
2008-06-14 22:12:07 UTC
text file containing a series of commands intended to be executed .



MSDOS batch file is a text file of commands that is run in the shell. The shell understands the commands and then runs the file.



here is a example of one:



REM ECHO OFF prevents the printing of each command to standard output.

@ECHO OFF

REM ECHO. prints a blank line.

ECHO.

ECHO Hello World, press any key to start APROGRAM.EXE!

PAUSE > NUL

REM The first argument to the batch file can be referenced with "%1"

APROGRAM.EXE %1

IF ERRORLEVEL 1 GOTO error

ECHO.

ECHO APROGRAM has finished whatever it was doing.

GOTO end

:error

ECHO.

ECHO Something went wrong with AProgram.

:end





what it does it gives you the ability to create programs that can talk to the OS at a very low level like delete files, virus check, you can make system type programs with it.

The shell is COMMAND.COM also known as cmd.exe if you run this, it would open the shell, shell means the OS command prompt where your commands would heard by the os this is just towards system type stuff like directory look up ect. It can also be an installer ect.
Peter
2008-06-14 20:23:22 UTC
A batch file is a file created by Command Prompt, and it's supposed to be sort of like an application. It opens a certain type of thing and makes something happen. I really don't understand it well, but it opens something to make something happen. Maybe it's opening the trojan to get into your computer?
2008-06-14 20:29:23 UTC
a batch file is just a simple file that launches itself in MSDOS and is usually used to run simple scrips on your computer such as deleting files, or things of that nature. Many viruses do create/use batch files to destroy data on your computer. However, I do believe that smp.bat is a virus. You can view this website that talks about a virus that creates that file on your hard drive.



http://global.ahnlab.com/global/viruscenter_view.ESD?virus_seq=16068&seType=1
2016-10-17 14:52:02 UTC
the toughest component of this finished factor is that DOS can no longer do character addition. This application meets your ideal standards, yet once you go with some thing extra versatile on the character areas, you're out of success. a million. placed your statements in record.txt. 2. right it is application a million, technique.bat: @echo off del record.new set BASEINC=a million for /F "tokens=2,3,4 delims=(,) " %%i in (record.txt) do call process2.bat %%i %%j %%ok pass /Y record.new record.txt 3. right it is application 2, process2.bat: set NUM=%a million set CHAR1=%2 set CHAR2=%3 set /A NUMINC=%NUM%+%BASEINC% if %BASEINC%==a million set NEWCHAR='b' if %BASEINC%==2 set NEWCHAR='c' if %BASEINC%==3 set NEWCHAR='d' echo VALUES (%NUMINC%, %NEWCHAR%, %NEWCHAR%) >> record.new set /A BASEINC=%BASEINC%+a million run technique.bat and it will do what you ask.
mitch
2008-06-14 20:24:58 UTC
this should help answer your question:http://fahwiki.net/index.php/How_do_I_install_the_SMP_Console_client_in_Windows_Vista%3F


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...